mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
improve announce update torrent visible
This commit is contained in:
@@ -4,6 +4,8 @@ namespace App\Providers;
|
||||
|
||||
use App\Auth\NexusWebGuard;
|
||||
use App\Auth\NexusWebUserProvider;
|
||||
use App\Models\Permission;
|
||||
use App\Models\Role;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -36,8 +38,12 @@ class AuthServiceProvider extends ServiceProvider
|
||||
|
||||
Auth::extend('nexus-web', function ($app, $name, array $config) {
|
||||
// 返回 Illuminate\Contracts\Auth\Guard 的实例 ...
|
||||
return new NexusWebGuard($app->make('request'), new NexusWebUserProvider());
|
||||
return new NexusWebGuard($app['request'], new NexusWebUserProvider());
|
||||
});
|
||||
|
||||
// Bouncer::useAbilityModel(Permission::class);
|
||||
// Bouncer::useRoleModel(Role::class);
|
||||
// Bouncer::useUserModel(User::class);
|
||||
}
|
||||
|
||||
private function getUserByCookie($cookie)
|
||||
|
||||
Reference in New Issue
Block a user