Laravel Notes

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

26th Mar 2024 — Ivan Shipilov

2024 iShipilov.ru
developed by iShipilov