mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update AppServiceProvider
This commit is contained in:
parent
db22469f06
commit
955593101b
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue