Commit 86b6380b authored by Jens Segers's avatar Jens Segers

Adding notes about query logging to readme

parent dddf711f
......@@ -313,3 +313,9 @@ You can also perform an unset on a model.
You may easily cache the results of a query using the remember method:
$users = User::remember(10)->get();
### Query Logging
By default, Laravel keeps a log in memory of all queries that have been run for the current request. However, in some cases, such as when inserting a large number of rows, this can cause the application to use excess memory. To disable the log, you may use the `disableQueryLog` method:
DB::connection()->disableQueryLog();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment