Use the following code to print query in Laravel, There are following way to print query in Laravel
1. \DB::enableQueryLog();
2. dd(\DB::getQueryLog());
3. User::where('user_id', $iserId)->toSql();
No comments:
Post a Comment