src/Database/Concerns/HasAbilities.php
public function forbid($ability = null, $model = null)
    {
        if (is_null($ability)) {
            return new ForbidsAbilities($this);
        }

        (new ForbidsAbilities($this))->to($ability, $model);

        return $this;
    }
public function forbid($ability = null, $model = null)
    {
        if (is_null($ability)) {
            return new ForbidsAbilities($this);
        }

        (new ForbidsAbilities($this))->to($ability, $model);

        return $this;
    }
public function forbid ( $ ability = null , $ model = null ) { if ( is_null ( $ ability ) ) { return new ForbidsAbilities ( $ this ) ; } ( new ForbidsAbilities ( $ this ) ) -> to ( $ ability , $ model ) ; return $ this ; }
Forbid an ability to the model.

@param  mixed  $ability
@param  mixed|null  $model
@return \Silber\Bouncer\Conductors\ForbidsAbilities|$this
Forbid an ability to the model .