In case you ran into this problem This page isn’t working www.example.com is currently unable to handle this request HTTP ERROR here is the cause and how to fix it. First, it must not be an error from your code, it is an error from querying large data from your database. So request ran out of memory, to fix it follow this step.
In your Laravel root project folder locate this file
Insert this line of code after line 324
or follow the code snippet or image below: