Your IP : 3.137.221.252


Current Path : /home/lentoinv/lentoria.com/vendor/laravel/sanctum/src/Exceptions/
Upload File :
Current File : /home/lentoinv/lentoria.com/vendor/laravel/sanctum/src/Exceptions/MissingAbilityException.php

<?php

namespace Laravel\Sanctum\Exceptions;

use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Support\Arr;

class MissingAbilityException extends AuthorizationException
{
    /**
     * The abilities that the user did not have.
     *
     * @var array
     */
    protected $abilities;

    /**
     * Create a new missing scope exception.
     *
     * @param  array|string  $abilities
     * @param  string  $message
     * @return void
     */
    public function __construct($abilities = [], $message = 'Invalid ability provided.')
    {
        parent::__construct($message);

        $this->abilities = Arr::wrap($abilities);
    }

    /**
     * Get the abilities that the user did not have.
     *
     * @return array
     */
    public function abilities()
    {
        return $this->abilities;
    }
}

?>