This commit is contained in:
2024-04-08 01:14:31 +02:00
commit e8c48a7fdb
9 changed files with 229 additions and 0 deletions

47
src/ServiceProvider.php Normal file
View File

@@ -0,0 +1,47 @@
<?php
namespace BAG\Laravel;
use Illuminate\Contracts\Support\DeferrableProvider;
class ServiceProvider extends \Illuminate\Support\ServiceProvider implements DeferrableProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
if (! $this->app->runningInConsole()) {
return;
}
$this->commands([
Console\MakeMigrations::class,
//...
]);
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
Console\MakeMigrations::class,
];
}
}