我正在为我的laravel应用程序中的每个客户端注册创建数据库。我已经安装了用于授权的护照。我已经成功地创建了数据库并为passport运行了迁移。passport:install命令对新创建的数据库无效。有没有办法为我的新数据库运行命令passport:install。DBHelper::connect($dbName) : Create new database config and then DB::reconnect()
/&
我在关注Laravel documentation to "Managing Personal Access Tokens" 我创建了一个尝试创建个人访问令牌的TestController。$token = $user->createToken('3page')->accessToken;
} 我可以获取$user,但在执行createToken'id' of non-object&quo