33 lines
552 B
PHP
33 lines
552 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Works extends Model
|
|
{
|
|
protected $table = 'works';
|
|
protected $fillable = [
|
|
'title',
|
|
'gallery',
|
|
'status',
|
|
'lang',
|
|
'categories_id',
|
|
'slug',
|
|
'excerpt',
|
|
'meta_tag',
|
|
'meta_description',
|
|
'duration',
|
|
'clients',
|
|
'budget',
|
|
'description',
|
|
'gallery',
|
|
'image'
|
|
];
|
|
|
|
public function getCategoriesIdAttribute($value){
|
|
return unserialize($value);
|
|
}
|
|
|
|
}
|