* The attributes that are mass assignable.
* @var array
*/
- protected $fillable = ['name', 'email', 'image_id', 'books_display' ];
+ protected $fillable = ['name', 'email', 'image_id'];
/**
* The attributes excluded from the model's JSON form.
*/
public function hasSystemRole($role)
{
- return $this->roles->pluck('system_name')->contains('admin');
+ return $this->roles->pluck('system_name')->contains($role);
}
/**