Update AppServiceProvider

Closes #107
This commit is contained in:
Daniel Supernault 2018-06-01 17:39:45 -06:00
parent 586329b6d9
commit 93129fe39f

View file

@ -6,6 +6,7 @@ use App\User;
use Auth, Horizon;
use App\Observers\UserObserver;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -17,6 +18,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
Schema::defaultStringLength(191);
User::observe(UserObserver::class);
Horizon::auth(function ($request) {