From a417d9bbad9e7cf269bec109b0cd4615280737e7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 3 Sep 2019 19:30:39 -0600 Subject: [PATCH] Update AppServiceProvider, add UserFilter observer --- app/Providers/AppServiceProvider.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 6bfe29459..aa82eb674 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -6,13 +6,15 @@ use App\Observers\{ AvatarObserver, NotificationObserver, StatusHashtagObserver, - UserObserver + UserObserver, + UserFilterObserver, }; use App\{ Avatar, Notification, StatusHashtag, - User + User, + UserFilter }; use Auth, Horizon, URL; use Illuminate\Support\Facades\Blade; @@ -35,6 +37,7 @@ class AppServiceProvider extends ServiceProvider Notification::observe(NotificationObserver::class); StatusHashtag::observe(StatusHashtagObserver::class); User::observe(UserObserver::class); + UserFilter::observe(UserFilterObserver::class); Horizon::auth(function ($request) { return Auth::check() && $request->user()->is_admin;