Reads the queries of eloquent

PHOTO EMBED

Tue May 09 2023 14:05:07 GMT+0000 (Coordinated Universal Time)

Saved by @dustbuster #php #laravel

\DB::enableQueryLog(); // Enable query log

// Your Eloquent query executed by using get()

dd(\DB::getQueryLog()); // Show results of log
content_copyCOPY

This logs eloquent.