You've already forked laravel-helper
init
This commit is contained in:
47
src/ServiceProvider.php
Normal file
47
src/ServiceProvider.php
Normal 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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user