摘要:
1.创建app/helpers.php2.注册路径{ ... "autoload": { "files": [ "app/helpers.php" ] } ...}3.更新路径composer dump-autoload 阅读全文
摘要:
Route::get('/test-sql', function(){ DB::enableQueryLog(); $user = App\User::first(); return DB::getQueryLog();}); 阅读全文