rbrecruiter/app/Providers/AppServiceProvider.php

50 lines
1.0 KiB
PHP
Raw 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;
2020-10-08 22:47:23 +00:00
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Schema;
2020-04-26 04:09:32 +00:00
use Illuminate\Support\ServiceProvider;
2020-10-08 22:47:23 +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()
{
Sentry\init([
'release' => env('RELEASE')
]);
Schema::defaultStringLength(191);
2020-10-08 22:47:23 +00:00
// Keep using Bootstrap; Laravel 8 has the paginator use Tailwind. Quite opinionated tbh
Paginator::useBootstrap();
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
}
}