2020-09-22 11:57:42 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class NewsSliderPictures extends Model
|
|
|
|
|
{
|
2021-03-20 14:38:15 +01:00
|
|
|
|
2020-11-10 12:53:07 +01:00
|
|
|
protected $hidden = [
|
|
|
|
|
'id',
|
|
|
|
|
'order',
|
|
|
|
|
'status',
|
|
|
|
|
'created_at',
|
|
|
|
|
'updated_at'
|
|
|
|
|
];
|
2021-03-17 18:53:07 +01:00
|
|
|
|
|
|
|
|
public function getTitleAttribute()
|
|
|
|
|
{
|
|
|
|
|
return clean($this->attributes['title']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getCatchPhraseAttribute()
|
|
|
|
|
{
|
|
|
|
|
return clean($this->attributes['catch_phrase']);
|
|
|
|
|
}
|
2020-09-22 11:57:42 +02:00
|
|
|
}
|