Questions tagged «laravel-authorization»

3
任何人都可以通过示例解释Laravel 5.2多重身份验证
我正在尝试分别认证用户和管理表单user表和admin表。我正在使用Userlaravel提供的模型,并为Admin.我添加了保护密钥和提供者密钥而创建了该模型auth.php. 守卫 'guards' => [ 'user' =>[ 'driver' => 'session', 'provider' => 'user', ], 'admin' => [ 'driver' => 'session', 'provider' => 'admin', ], ], 提供者 'providers' => [ 'user' => [ 'driver' => 'eloquent', 'model' => App\User::class, ], 'admin' => [ 'driver' => 'eloquent', 'model' => App\Admin::class, ] ], …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.