forked from miguel456/rbrecruiter
Miguel Nogueira
4eb115d165
This reverts pull request #6. > This pull request applies code style fixes from an analysis carried out by [StyleCI](https://bitbucket.styleci.io). > > For more information, click [here](https://bitbucket.styleci.io/analyses/a2Jl7D).
44 lines
859 B
PHP
44 lines
859 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Application;
|
|
use App\Observers\ApplicationObserver;
|
|
use App\Observers\UserObserver;
|
|
use App\User;
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Sentry;
|
|
|
|
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);
|
|
|
|
User::observe(UserObserver::class);
|
|
Application::observe(ApplicationObserver::class);
|
|
|
|
$this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');
|
|
}
|
|
}
|