Methods |
public
|
version(): string
Get the version number of the application.
Get the version number of the application.
|
#
|
public
|
basePath(string $path = ''): string
Get the base path of the Laravel installation.
Get the base path of the Laravel installation.
|
#
|
public
|
bootstrapPath(string $path = ''): string
Get the path to the bootstrap directory.
Get the path to the bootstrap directory.
|
#
|
public
|
configPath(string $path = ''): string
Get the path to the application configuration files.
Get the path to the application configuration files.
|
#
|
public
|
databasePath(string $path = ''): string
Get the path to the database directory.
Get the path to the database directory.
|
#
|
public
|
resourcePath(string $path = ''): string
Get the path to the resources directory.
Get the path to the resources directory.
|
#
|
public
|
storagePath(): string
Get the path to the storage directory.
Get the path to the storage directory.
|
#
|
public
|
environment(string|array ...$environments): string|bool
Get or check the current application environment.
Get or check the current application environment.
|
#
|
public
|
runningInConsole(): bool
Determine if the application is running in the console.
Determine if the application is running in the console.
|
#
|
public
|
runningUnitTests(): bool
Determine if the application is running unit tests.
Determine if the application is running unit tests.
|
#
|
public
|
isDownForMaintenance(): bool
Determine if the application is currently down for maintenance.
Determine if the application is currently down for maintenance.
|
#
|
public
|
registerConfiguredProviders(): void
Register all of the configured providers.
Register all of the configured providers.
|
#
|
public
|
register(ServiceProvider|string $provider, bool $force = false): ServiceProvider
Register a service provider with the application.
Register a service provider with the application.
|
#
|
public
|
registerDeferredProvider(string $provider, string|null $service = null): void
Register a deferred provider and service.
Register a deferred provider and service.
|
#
|
public
|
resolveProvider(string $provider): ServiceProvider
Resolve a service provider instance from the class name.
Resolve a service provider instance from the class name.
|
#
|
public
|
boot(): void
Boot the application's service providers.
Boot the application's service providers.
|
#
|
public
|
booting(callable $callback): void
Register a new boot listener.
Register a new boot listener.
|
#
|
public
|
booted(callable $callback): void
Register a new "booted" listener.
Register a new "booted" listener.
|
#
|
public
|
bootstrapWith(array $bootstrappers): void
Run the given array of bootstrap classes.
Run the given array of bootstrap classes.
|
#
|
public
|
getLocale(): string
Get the current application locale.
Get the current application locale.
|
#
|
public
|
getNamespace(): string
Get the application namespace.
Get the application namespace.
Throws
|
#
|
public
|
getProviders(ServiceProvider|string $provider): array
Get the registered service provider instances if any exist.
Get the registered service provider instances if any exist.
|
#
|
public
|
hasBeenBootstrapped(): bool
Determine if the application has been bootstrapped before.
Determine if the application has been bootstrapped before.
|
#
|
public
|
loadDeferredProviders(): void
Load and boot all of the remaining deferred providers.
Load and boot all of the remaining deferred providers.
|
#
|
public
|
setLocale(string $locale): void
Set the current application locale.
Set the current application locale.
|
#
|
public
|
shouldSkipMiddleware(): bool
Determine if middleware has been disabled for the application.
Determine if middleware has been disabled for the application.
|
#
|
public
|
terminate(): void
Terminate the application.
Terminate the application.
|
#
|