class GateServiceProvider extends ServiceProvider

Properties

protected bool $defer Indicates if loading of the service provider is deferred.

Methods

void
boot( $gate)

Bootstrap any application services.

void
register()

Register any application services.

void
registerPermissions( $gate)

Dynamically register permissions with Laravel's gate

Collection
permissions()

Fetch the collection of site permissions

Details

at line 27
void boot( $gate)

Bootstrap any application services.

Parameters

$gate

Return Value

void

at line 43
void register()

Register any application services.

Return Value

void

at line 59
void registerPermissions( $gate)

Dynamically register permissions with Laravel's gate

Parameters

$gate \Illuminate\Contracts\Auth\Access\Gate

Return Value

void

at line 74
Collection permissions()

Fetch the collection of site permissions

Return Value

Collection

Exceptions

Exception