MigrationServiceProvider
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
Register the service provider.
Register the package's component namespaces.
Determine the namespace for a package.
Get the services provided by the provider.
Register the migration repository service.
Register the migrator service.
Register all of the migration commands.
Register the "migrate" migration command.
Register the "rollback" migration command.
Register the "reset" migration command.
Register the "refresh" migration command.
Register the "install" migration command.
Register the "install" migration command.
Register the migration creator.
Details
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.
protected string
getPackageNamespace(string $package, string $namespace)
Determine the namespace for a package.
void
commands(array $commands)
Register the package's custom Artisan commands.
protected 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.
protected void
registerRepository()
Register the migration repository service.
protected void
registerMigrator()
Register the migrator service.
protected void
registerCommands()
Register all of the migration commands.
protected void
registerMigrateCommand()
Register the "migrate" migration command.
protected void
registerRollbackCommand()
Register the "rollback" migration command.
protected void
registerResetCommand()
Register the "reset" migration command.
protected void
registerRefreshCommand()
Register the "refresh" migration command.
protected void
registerInstallCommand()
Register the "install" migration command.
protected void
registerMakeCommand()
Register the "install" migration command.
protected void
registerCreator()
Register the migration creator.