staffmanager/app/Providers/AppServiceProvider.php

44 lines
859 B
PHP
Raw Permalink Normal View History

2020-04-26 04:09:32 +00:00
<?php
namespace App\Providers;
2020-09-07 20:43:48 +00:00
use App\Application;
use App\Observers\ApplicationObserver;
use App\Observers\UserObserver;
use App\User;
use Illuminate\Support\Facades\Schema;
2020-04-26 04:09:32 +00:00
use Illuminate\Support\ServiceProvider;
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()
{
Sentry\init([
'release' => env('RELEASE')
]);
Schema::defaultStringLength(191);
2020-09-07 20:43:48 +00:00
User::observe(UserObserver::class);
2020-09-07 20:43:48 +00:00
Application::observe(ApplicationObserver::class);
$this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');
2020-04-26 04:09:32 +00:00
}
}