In case of file permission error:
chgrp -R www-data storage bootstrap/cache && chmod -R ug+rwx storage bootstrap/cache
To output the last queries:
DB::enableQueryLog(); // Enable query log
// Your Eloquent query executed by using get()
dd(DB::getQueryLog()); // Show results of log