belongsToMany('App\Note'); } /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = ['deleted']; /** * We shall set a blacklist of non-modifiable model attributes. * * @var array */ protected $guarded = ['id']; }