Gate::__construct()

void __construct(Container $container, callable $userResolver, array $abilities = array(), array $policies = array(), array $beforeCallbacks = array(), array $afterCallbacks = array()) Create a new gate instance. Parameters Container $container callable $userResolver array $abilities array $policies array $beforeCallbacks array $afterCallbacks Return Value void

Gate::__callStatic()

static mixed __callStatic(string $method, array $args) Handle dynamic, static calls to the object. Parameters string $method array $args Return Value mixed

Gate::swap()

static void swap(mixed $instance) Hotswap the underlying instance behind the facade. Parameters mixed $instance Return Value void

Gate::shouldReceive()

static Expectation shouldReceive() Initiate a mock expectation on the facade. Return Value Expectation

Gate::setFacadeApplication()

static void setFacadeApplication(Application $app) Set the application instance. Parameters Application $app Return Value void

Gate::resolvePolicy()

mixed resolvePolicy(object|string $class) Build a policy class instance of the given type. Parameters object|string $class Return Value mixed

Gate::policy()

$this policy(string $class, string $policy) Define a policy class for a given class type. Parameters string $class string $policy Return Value $this

Gate::policy()

$this policy(string $class, string $policy) Define a policy class for a given class type. Parameters string $class string $policy Return Value $this

Gate::has()

bool has(string $ability) Determine if a given ability has been defined. Parameters string $ability Return Value bool

Gate::has()

bool has(string $ability) Determine if a given ability has been defined. Parameters string $ability Return Value bool