Answers for "laravel dump sql query"

PHP
6

print last sql query laravel

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

// Your Eloquent query executed by using get()

dd(DB::getQueryLog()); // Show results of log
Posted by: Guest on May-09-2020
0

laravel migration sql dump

# Squashing Migrations
php artisan schema:dump

# Dump the current database schema and prune all existing migrations...
php artisan schema:dump --prune
Posted by: Guest on May-18-2021

Browse Popular Code Answers by Language