src/Guard.php
protected function checkAtClipboard(Model $authority, $ability, $model)
    {
        if ($id = $this->clipboard->checkGetId($authority, $ability, $model)) {
            return $this->allow('Bouncer granted permission via ability #'.$id);
        }

        // If the response from "checkGetId" is "false", then this ability
        // has been explicity forbidden. We'll return false so the gate
        // doesn't run any further checks. Otherwise we return null.
        return $id;
    }
protected function checkAtClipboard(Model $authority, $ability, $model)
    {
        if ($id = $this->clipboard->checkGetId($authority, $ability, $model)) {
            return $this->allow('Bouncer granted permission via ability #'.$id);
        }

        // If the response from "checkGetId" is "false", then this ability
        // has been explicity forbidden. We'll return false so the gate
        // doesn't run any further checks. Otherwise we return null.
        return $id;
    }
protected function checkAtClipboard ( Model $ authority , $ ability , $ model ) { if ( $ id = $ this -> clipboard -> checkGetId ( $ authority , $ ability , $ model ) ) { return $ this -> allow ( 'Bouncer granted permission via ability #' . $ id ) ; } // If the response from "checkGetId" is "false", then this ability // has been explicity forbidden. We'll return false so the gate // doesn't run any further checks. Otherwise we return null. return $ id ; }
Run an auth check at the clipboard.

@param  \Illuminate\Database\Eloquent\Model  $authority
@param  string  $ability
@param  \Illuminate\Database\Eloquent\Model|string|null  $model
@return mixed
Run an auth check at the clipboard .