*/ protected $fillable = [ 'uid', 'page', 'title', 'description', 'keywords', 'created_id', 'updated_id', 'deleted_id', 'created_at', 'updated_at', 'deleted_at' ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ ]; protected $visible = [ 'uid', 'page', 'title', 'description', 'keywords', 'created_id', 'created_at', 'updated_at' ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ ]; public function user() { return $this->belongsTo('App\Models\User', 'created_id'); } }