2018-11-15 10:45:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2021-06-20 13:03:20 +00:00
|
|
|
use Laravel\Passport\Passport;
|
2018-11-15 10:45:49 +00:00
|
|
|
|
2021-07-16 06:55:26 +00:00
|
|
|
use App\Traits\SingleOrFail;
|
|
|
|
|
2018-11-15 10:45:49 +00:00
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
2021-07-16 06:55:26 +00:00
|
|
|
use SingleOrFail;
|
|
|
|
|
2021-05-22 14:38:19 +00:00
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2021-06-20 13:03:20 +00:00
|
|
|
Passport::ignoreMigrations();
|
2021-05-22 14:38:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2021-07-16 06:55:26 +00:00
|
|
|
static::bootSingleOrFail();
|
2021-05-22 14:38:19 +00:00
|
|
|
}
|
2018-11-15 10:45:49 +00:00
|
|
|
}
|