Laravel DB listen 回调追踪产生 sql 语句的代码
1 | \DB::listen(function (QueryExecuted $sql) { |
1 | \DB::listen(function (QueryExecuted $sql) { |
1 | if (! function_exists('dd')) { |
AppServiceProvider
1 | use Illuminate\Support\Facades\Schema; |
解决方法:https://github.com/laravel/passport/issues/221
In your oauth_clients table, do the values you have above exist exactly as you have them in your database?
oauth_clients
1 | id - 3 |
If it doesn't exist exactly like that in the database for passport.dev then it will throw the invalid_client error. Please be sure to check that and we will see if any further investigation is needed.
还需要查看 oauth_clients
表的
password_client
是否为 1
public function boot() { LumenPassport::routes($this->app->router); }
该方法的参数应该传递 $this->app->router
而不是
$this->app