How can I free up memory when using DB facade in Laravel?
I use a simple query with DB facade inside a look to check if a record in a database exists. It looks like the query consumes memory on each iteration although I try to unset all used variables an run the garbage collection.