Methods |
public
|
__construct(Application $app): void
Create a new service provider instance.
Create a new service provider instance.
|
#
|
public
|
register(): void
Register any application services.
Register any application services.
|
#
|
public
|
booting(Closure $callback): void
Register a booting callback to be run before the "boot" method is called.
Register a booting callback to be run before the "boot" method is called.
|
#
|
public
|
booted(Closure $callback): void
Register a booted callback to be run after the "boot" method is called.
Register a booted callback to be run after the "boot" method is called.
|
#
|
public
|
callBootingCallbacks(): void
Call the registered booting callbacks.
Call the registered booting callbacks.
|
#
|
public
|
callBootedCallbacks(): void
Call the registered booted callbacks.
Call the registered booted callbacks.
|
#
|
public
static
|
pathsToPublish(string|null $provider = null, string|null $group = null): array
Get the paths to publish.
Get the paths to publish.
|
#
|
public
static
|
publishableProviders(): array
Get the service providers available for publishing.
Get the service providers available for publishing.
|
#
|
public
static
|
publishableGroups(): array
Get the groups available for publishing.
Get the groups available for publishing.
|
#
|
public
|
commands(array|mixed $commands): void
Register the package's custom Artisan commands.
Register the package's custom Artisan commands.
|
#
|
public
|
provides(): array
Get the services provided by the provider.
Get the services provided by the provider.
|
#
|
public
|
when(): array
Get the events that trigger this service provider to register.
Get the events that trigger this service provider to register.
|
#
|
public
|
isDeferred(): bool
Determine if the provider is deferred.
Determine if the provider is deferred.
|
#
|