26 lines
458 B
PHP
26 lines
458 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class NewsSliderPictures extends Model
|
|
{
|
|
protected $hidden = [
|
|
'id',
|
|
'order',
|
|
'status',
|
|
'created_at',
|
|
'updated_at'
|
|
];
|
|
|
|
public function getTitleAttribute()
|
|
{
|
|
return clean($this->attributes['title']);
|
|
}
|
|
|
|
public function getCatchPhraseAttribute()
|
|
{
|
|
return clean($this->attributes['catch_phrase']);
|
|
}
|
|
}
|