Sometimes it's useful for debugging purposes to preview the query that Laravel generates with Eloquent/Fluent. Laravel 5 (!) In Laravel 5 you should enable do DB::enableQueryLog(); first. Then after placing your final statement: DB::table('users')->where('name', '=', 'Aknavi')->get(); just run: dd(…