class ArtisanServiceProvider extends ServiceProvider

Properties

protected Application $app

The application instance.

from  ServiceProvider
protected bool $defer

Indicates if loading of the provider is deferred.

static protected array $publishes

The paths that should be published.

from  ServiceProvider
static protected array $publishGroups

The paths that should be published by group.

from  ServiceProvider
protected array $commands

The commands to be registered.

protected array $devCommands

The commands to be registered.

Methods

void
__construct(Application $app)

Create a new service provider instance.

void
mergeConfigFrom(string $path, string $key)

Merge the given configuration with the existing configuration.

void
loadRoutesFrom(string $path)

Load the given routes file if routes are not already cached.

void
loadViewsFrom(string $path, string $namespace)

Register a view file namespace.

void
loadTranslationsFrom(string $path, string $namespace)

Register a translation file namespace.

void
loadMigrationsFrom(array|string $paths)

Register a database migration path.

void
publishes(array $paths, string $group = null)

Register paths to be published by the publish command.

void
ensurePublishArrayInitialized(string $class)

Ensure the publish array for the service provider is initialized.

void
addPublishGroup(string $group, array $paths)

Add a publish group / tag to the service provider.

static array
pathsToPublish(string $provider = null, string $group = null)

Get the paths to publish.

static array
pathsForProviderOrGroup(string|null $provider, string|null $group)

Get the paths for the provider or group (or both).

static array
pathsForProviderAndGroup(string $provider, string $group)

Get the paths for the provider and group.

void
commands(array|mixed $commands)

Register the package's custom Artisan commands.

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.

static array
compiles() deprecated

Get a list of files that should be compiled for the package.

void
register()

Register the service provider.

void
registerCommands(array $commands)

Register the given commands.

void
registerAppNameCommand()

Register the command.

void
registerAuthMakeCommand()

Register the command.

void
registerCacheClearCommand()

Register the command.

void
registerCacheForgetCommand()

Register the command.

void
registerCacheTableCommand()

Register the command.

void
registerClearCompiledCommand()

Register the command.

void
registerClearResetsCommand()

Register the command.

void
registerConfigCacheCommand()

Register the command.

void
registerConfigClearCommand()

Register the command.

void
registerConsoleMakeCommand()

Register the command.

void
registerControllerMakeCommand()

Register the command.

void
registerEventGenerateCommand()

Register the command.

void
registerEventMakeCommand()

Register the command.

void
registerDownCommand()

Register the command.

void
registerEnvironmentCommand()

Register the command.

void
registerJobMakeCommand()

Register the command.

void
registerKeyGenerateCommand()

Register the command.

void
registerListenerMakeCommand()

Register the command.

void
registerMailMakeCommand()

Register the command.

void
registerMiddlewareMakeCommand()

Register the command.

void
registerMigrateCommand()

Register the command.

void
registerMigrateInstallCommand()

Register the command.

void
registerMigrateMakeCommand()

Register the command.

void
registerMigrateRefreshCommand()

Register the command.

void
registerMigrateResetCommand()

Register the command.

void
registerMigrateRollbackCommand()

Register the command.

void
registerMigrateStatusCommand()

Register the command.

void
registerModelMakeCommand()

Register the command.

void
registerNotificationMakeCommand()

Register the command.

void
registerOptimizeCommand()

Register the command.

void
registerProviderMakeCommand()

Register the command.

void
registerQueueFailedCommand()

Register the command.

void
registerQueueForgetCommand()

Register the command.

void
registerQueueFlushCommand()

Register the command.

void
registerQueueListenCommand()

Register the command.

void
registerQueueRestartCommand()

Register the command.

void
registerQueueRetryCommand()

Register the command.

void
registerQueueWorkCommand()

Register the command.

void
registerQueueFailedTableCommand()

Register the command.

void
registerQueueTableCommand()

Register the command.

void
registerRequestMakeCommand()

Register the command.

void
registerSeederMakeCommand()

Register the command.

void
registerSessionTableCommand()

Register the command.

void
registerStorageLinkCommand()

Register the command.

void
registerRouteCacheCommand()

Register the command.

void
registerRouteClearCommand()

Register the command.

void
registerRouteListCommand()

Register the command.

void
registerSeedCommand()

Register the command.

void
registerScheduleFinishCommand()

Register the command.

void
registerScheduleRunCommand()

Register the command.

void
registerServeCommand()

Register the command.

void
registerTestMakeCommand()

Register the command.

void
registerUpCommand()

Register the command.

void
registerVendorPublishCommand()

Register the command.

void
registerViewClearCommand()

Register the command.

void
registerPolicyMakeCommand()

Register the command.

void
registerNotificationTableCommand()

Register the command.

Details

in ServiceProvider at line 43
void __construct(Application $app)

Create a new service provider instance.

Parameters

Application $app

Return Value

void

in ServiceProvider at line 55
protected void mergeConfigFrom(string $path, string $key)

Merge the given configuration with the existing configuration.

Parameters

string $path
string $key

Return Value

void

in ServiceProvider at line 68
protected void loadRoutesFrom(string $path)

Load the given routes file if routes are not already cached.

Parameters

string $path

Return Value

void

in ServiceProvider at line 82
protected void loadViewsFrom(string $path, string $namespace)

Register a view file namespace.

Parameters

string $path
string $namespace

Return Value

void

in ServiceProvider at line 98
protected void loadTranslationsFrom(string $path, string $namespace)

Register a translation file namespace.

Parameters

string $path
string $namespace

Return Value

void

in ServiceProvider at line 109
protected void loadMigrationsFrom(array|string $paths)

Register a database migration path.

Parameters

array|string $paths

Return Value

void

in ServiceProvider at line 125
protected void publishes(array $paths, string $group = null)

Register paths to be published by the publish command.

Parameters

array $paths
string $group

Return Value

void

in ServiceProvider at line 142
protected void ensurePublishArrayInitialized(string $class)

Ensure the publish array for the service provider is initialized.

Parameters

string $class

Return Value

void

in ServiceProvider at line 156
protected void addPublishGroup(string $group, array $paths)

Add a publish group / tag to the service provider.

Parameters

string $group
array $paths

Return Value

void

in ServiceProvider at line 174
static array pathsToPublish(string $provider = null, string $group = null)

Get the paths to publish.

Parameters

string $provider
string $group

Return Value

array

in ServiceProvider at line 192
static protected array pathsForProviderOrGroup(string|null $provider, string|null $group)

Get the paths for the provider or group (or both).

Parameters

string|null $provider
string|null $group

Return Value

array

in ServiceProvider at line 212
static protected array pathsForProviderAndGroup(string $provider, string $group)

Get the paths for the provider and group.

Parameters

string $provider
string $group

Return Value

array

in ServiceProvider at line 227
void commands(array|mixed $commands)

Register the package's custom Artisan commands.

Parameters

array|mixed $commands

Return Value

void

at line 865
array provides()

Get the services provided by the provider.

Return Value

array

in ServiceProvider at line 251
array when()

Get the events that trigger this service provider to register.

Return Value

array

in ServiceProvider at line 261
bool isDeferred()

Determine if the provider is deferred.

Return Value

bool

in ServiceProvider at line 273
static array compiles() deprecated

deprecated

Get a list of files that should be compiled for the package.

Return Value

array

at line 151
void register()

Register the service provider.

Return Value

void

at line 164
protected void registerCommands(array $commands)

Register the given commands.

Parameters

array $commands

Return Value

void

at line 178
protected void registerAppNameCommand()

Register the command.

Return Value

void

at line 190
protected void registerAuthMakeCommand()

Register the command.

Return Value

void

at line 202
protected void registerCacheClearCommand()

Register the command.

Return Value

void

at line 214
protected void registerCacheForgetCommand()

Register the command.

Return Value

void

at line 226
protected void registerCacheTableCommand()

Register the command.

Return Value

void

at line 238
protected void registerClearCompiledCommand()

Register the command.

Return Value

void

at line 250
protected void registerClearResetsCommand()

Register the command.

Return Value

void

at line 262
protected void registerConfigCacheCommand()

Register the command.

Return Value

void

at line 274
protected void registerConfigClearCommand()

Register the command.

Return Value

void

at line 286
protected void registerConsoleMakeCommand()

Register the command.

Return Value

void

at line 298
protected void registerControllerMakeCommand()

Register the command.

Return Value

void

at line 310
protected void registerEventGenerateCommand()

Register the command.

Return Value

void

at line 322
protected void registerEventMakeCommand()

Register the command.

Return Value

void

at line 334
protected void registerDownCommand()

Register the command.

Return Value

void

at line 346
protected void registerEnvironmentCommand()

Register the command.

Return Value

void

at line 358
protected void registerJobMakeCommand()

Register the command.

Return Value

void

at line 370
protected void registerKeyGenerateCommand()

Register the command.

Return Value

void

at line 382
protected void registerListenerMakeCommand()

Register the command.

Return Value

void

at line 394
protected void registerMailMakeCommand()

Register the command.

Return Value

void

at line 406
protected void registerMiddlewareMakeCommand()

Register the command.

Return Value

void

at line 418
protected void registerMigrateCommand()

Register the command.

Return Value

void

at line 430
protected void registerMigrateInstallCommand()

Register the command.

Return Value

void

at line 442
protected void registerMigrateMakeCommand()

Register the command.

Return Value

void

at line 461
protected void registerMigrateRefreshCommand()

Register the command.

Return Value

void

at line 473
protected void registerMigrateResetCommand()

Register the command.

Return Value

void

at line 485
protected void registerMigrateRollbackCommand()

Register the command.

Return Value

void

at line 497
protected void registerMigrateStatusCommand()

Register the command.

Return Value

void

at line 509
protected void registerModelMakeCommand()

Register the command.

Return Value

void

at line 521
protected void registerNotificationMakeCommand()

Register the command.

Return Value

void

at line 533
protected void registerOptimizeCommand()

Register the command.

Return Value

void

at line 545
protected void registerProviderMakeCommand()

Register the command.

Return Value

void

at line 557
protected void registerQueueFailedCommand()

Register the command.

Return Value

void

at line 569
protected void registerQueueForgetCommand()

Register the command.

Return Value

void

at line 581
protected void registerQueueFlushCommand()

Register the command.

Return Value

void

at line 593
protected void registerQueueListenCommand()

Register the command.

Return Value

void

at line 605
protected void registerQueueRestartCommand()

Register the command.

Return Value

void

at line 617
protected void registerQueueRetryCommand()

Register the command.

Return Value

void

at line 629
protected void registerQueueWorkCommand()

Register the command.

Return Value

void

at line 641
protected void registerQueueFailedTableCommand()

Register the command.

Return Value

void

at line 653
protected void registerQueueTableCommand()

Register the command.

Return Value

void

at line 665
protected void registerRequestMakeCommand()

Register the command.

Return Value

void

at line 677
protected void registerSeederMakeCommand()

Register the command.

Return Value

void

at line 689
protected void registerSessionTableCommand()

Register the command.

Return Value

void

at line 701
protected void registerStorageLinkCommand()

Register the command.

Return Value

void

at line 713
protected void registerRouteCacheCommand()

Register the command.

Return Value

void

at line 725
protected void registerRouteClearCommand()

Register the command.

Return Value

void

at line 737
protected void registerRouteListCommand()

Register the command.

Return Value

void

at line 749
protected void registerSeedCommand()

Register the command.

Return Value

void

at line 761
protected void registerScheduleFinishCommand()

Register the command.

Return Value

void

at line 771
protected void registerScheduleRunCommand()

Register the command.

Return Value

void

at line 781
protected void registerServeCommand()

Register the command.

Return Value

void

at line 793
protected void registerTestMakeCommand()

Register the command.

Return Value

void

at line 805
protected void registerUpCommand()

Register the command.

Return Value

void

at line 817
protected void registerVendorPublishCommand()

Register the command.

Return Value

void

at line 829
protected void registerViewClearCommand()

Register the command.

Return Value

void

at line 841
protected void registerPolicyMakeCommand()

Register the command.

Return Value

void

at line 853
protected void registerNotificationTableCommand()

Register the command.

Return Value

void