Search code examples
phplaravellaravel-valet

How do I view server logs in Laravel?


New to Laravel, coming from Rails. In Rails you start the server via rails serve and then begin seeing the server logs (http requests, db queries, etc). How do I see this in Laravel? I'm using Valet so I don't have to run any command to start the server.


Solution

  • The server logs, depend on your valet configuration,

    See: Laravel Valet logs

    However i think you are looking for the laravel logs, that catch most errors, before sending them to the actual server logs

    You'll find these at ./storage/logs in your project. If you didn't set up any different logging method.