Update AppServiceProvider

This commit is contained in:
Daniel Supernault 2019-02-12 01:05:43 -07:00
parent db22469f06
commit 955593101b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -2,8 +2,11 @@
namespace App\Providers; namespace App\Providers;
use App\Observers\UserObserver; use App\Observers\{
use App\User; AvatarObserver,
UserObserver
};
use App\{Avatar,User};
use Auth, Horizon, URL; use Auth, Horizon, URL;
use Illuminate\Support\Facades\Blade; use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@ -20,6 +23,7 @@ class AppServiceProvider extends ServiceProvider
{ {
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
Avatar::observe(AvatarObserver::class);
User::observe(UserObserver::class); User::observe(UserObserver::class);
Horizon::auth(function ($request) { Horizon::auth(function ($request) {