2020-04-26 04:09:32 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
use App\Observers\UserObserver;
|
|
|
|
use App\User;
|
2020-04-29 02:20:00 +00:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2020-04-26 04:09:32 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2020-06-27 21:22:33 +00:00
|
|
|
use Sentry;
|
2020-04-26 04:09:32 +00:00
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2020-06-27 21:22:33 +00:00
|
|
|
Sentry\init([
|
|
|
|
'release' => env('RELEASE')
|
|
|
|
]);
|
|
|
|
|
2020-04-29 02:20:00 +00:00
|
|
|
Schema::defaultStringLength(191);
|
2020-06-26 23:32:33 +00:00
|
|
|
User::observe(UserObserver::class);
|
2020-04-26 04:09:32 +00:00
|
|
|
}
|
|
|
|
}
|