*/ protected $fillable = [ 'name', 'key', 'value', 'system', 'created_id', 'updated_id', 'created_at', 'updated_at' ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ ]; protected $visible = [ 'id', 'name', 'key', 'value', 'system', 'created_id', 'created_at' ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'system' => 'integer' ]; public function user() { return $this->belongsTo('App\Models\User', 'created_id'); } }