feat: Socket Support and Event Examples

This commit is contained in:
2023-11-10 18:07:55 +01:00
parent ce6405cb8a
commit eac670642a
14 changed files with 754 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Providers;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
@@ -27,6 +28,10 @@ class AuthServiceProvider extends ServiceProvider
return config('app.frontend_url')."/password-reset/$token?email={$notifiable->getEmailForPasswordReset()}";
});
Gate::before(function ($user, $ability) {
return $user->hasRole('super-admin') ? true : null;
});
//
}
}