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