DB::enableQueryLog() 1




Here is what the above code is Doing:
1. We’re using the DB facade to get a query builder instance.
2. We’re using the query builder to select all records from the users table.
3. We’re using the get method to retrieve the results.
4. We’re using the dd helper to dump the results and terminate the script.
5. We’re enabling query logging.
6. We’re dumping the query log.

Similar Posts