how log data in laravel code example
Example 1: How to Log Query in Laravel
DB::enableQueryLog();
$arr_user = DB::table('users')->select('name', 'email as user_email')->get();
dd(DB::getQueryLog());
Example 2: how to log object laravel logger
use Illuminate\Support\Facades\Log;
Log::info(json_encode($user);