我想为使用Passport但使用不同型号(不是用户)的Laravel添加一个自定义防护,但是当我尝试为这个防护设置用户时它不起作用.
配置/ auth.php:
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great …Run Code Online (Sandbox Code Playgroud) 我想用Laravel 5构建在线商店.这个框架对我来说是新的.
所以问题是哪个是Laravel 5最好的购物车?