class MigrationServiceProvider extends ServiceProvider (View source)

Properties

protected Application $app

The application instance.

from  ServiceProvider
protected bool $defer

Indicates if loading of the provider is deferred.

Methods

void
__construct(Application $app)

Create a new service provider instance.

void
boot()

Bootstrap the application events.

void
register()

Register the service provider.

void
package(string $package, string $namespace = null, string $path = null)

Register the package's component namespaces.

string
guessPackagePath()

Guess the package path for the provider.

string
getPackageNamespace(string $package, string $namespace)

Determine the namespace for a package.

void
commands(array $commands)

Register the package's custom Artisan commands.

string
getAppViewPath(string $package)

Get the application package view path.

array
provides()

Get the services provided by the provider.

array
when()

Get the events that trigger this service provider to register.

bool
isDeferred()

Determine if the provider is deferred.

void
registerRepository()

Register the migration repository service.

void
registerMigrator()

Register the migrator service.

void
registerCommands()

Register all of the migration commands.

void
registerMigrateCommand()

Register the "migrate" migration command.

void
registerRollbackCommand()

Register the "rollback" migration command.

void
registerResetCommand()

Register the "reset" migration command.

void
registerRefreshCommand()

Register the "refresh" migration command.

void
registerInstallCommand()

Register the "install" migration command.

void
registerMakeCommand()

Register the "install" migration command.

void
registerCreator()

Register the migration creator.

Details

void __construct(Application $app)

Create a new service provider instance.

Parameters

Application $app

Return Value

void

void boot()

Bootstrap the application events.

Return Value

void

void register()

Register the service provider.

Return Value

void

void package(string $package, string $namespace = null, string $path = null)

Register the package's component namespaces.

Parameters

string $package
string $namespace
string $path

Return Value

void

string guessPackagePath()

Guess the package path for the provider.

Return Value

string

protected string getPackageNamespace(string $package, string $namespace)

Determine the namespace for a package.

Parameters

string $package
string $namespace

Return Value

string

void commands(array $commands)

Register the package's custom Artisan commands.

Parameters

array $commands

Return Value

void

protected string getAppViewPath(string $package)

Get the application package view path.

Parameters

string $package

Return Value

string

array provides()

Get the services provided by the provider.

Return Value

array

array when()

Get the events that trigger this service provider to register.

Return Value

array

bool isDeferred()

Determine if the provider is deferred.

Return Value

bool

protected void registerRepository()

Register the migration repository service.

Return Value

void

protected void registerMigrator()

Register the migrator service.

Return Value

void

protected void registerCommands()

Register all of the migration commands.

Return Value

void

protected void registerMigrateCommand()

Register the "migrate" migration command.

Return Value

void

protected void registerRollbackCommand()

Register the "rollback" migration command.

Return Value

void

protected void registerResetCommand()

Register the "reset" migration command.

Return Value

void

protected void registerRefreshCommand()

Register the "refresh" migration command.

Return Value

void

protected void registerInstallCommand()

Register the "install" migration command.

Return Value

void

protected void registerMakeCommand()

Register the "install" migration command.

Return Value

void

protected void registerCreator()

Register the migration creator.

Return Value

void