forked from mirror/pixelfed
Update AppServiceProvider
This commit is contained in:
parent
64462cdb94
commit
cddb88352b
1 changed files with 7 additions and 1 deletions
|
@ -4,9 +4,14 @@ namespace App\Providers;
|
||||||
|
|
||||||
use App\Observers\{
|
use App\Observers\{
|
||||||
AvatarObserver,
|
AvatarObserver,
|
||||||
|
NotificationObserver,
|
||||||
UserObserver
|
UserObserver
|
||||||
};
|
};
|
||||||
use App\{Avatar,User};
|
use App\{
|
||||||
|
Avatar,
|
||||||
|
Notification,
|
||||||
|
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;
|
||||||
|
@ -25,6 +30,7 @@ class AppServiceProvider extends ServiceProvider
|
||||||
Schema::defaultStringLength(191);
|
Schema::defaultStringLength(191);
|
||||||
|
|
||||||
Avatar::observe(AvatarObserver::class);
|
Avatar::observe(AvatarObserver::class);
|
||||||
|
Notification::observe(NotificationObserver::class);
|
||||||
User::observe(UserObserver::class);
|
User::observe(UserObserver::class);
|
||||||
|
|
||||||
Horizon::auth(function ($request) {
|
Horizon::auth(function ($request) {
|
||||||
|
|
Loading…
Reference in a new issue