I’m new to Laravel and while I had a working project via docker compose on my laptop 2 weeks ago, I’m on a new machine and needed to reinstall the project I had already been working on.

So far I’ve only built out the templates. I’m not interacting with the database outside whatever the default setup is. I expected to clone the project, setup .env files and run docker compose up to get my project going.

What actually happened was a big error screen about not being able to access storage/framework/views/<longstring>.php. Searching online I got lots of information saying that I had a file permission issue with Docker that doesn’t exist on macOS or Windows because of how they do virtualisation which sent me down a path of messing with chmod and groups on my Fedora 40 machine.

The real fix was php artisan migrate which initialised the sqlite database. Then my Laravel project ran on via docker compose without issue.

Posted by Curtis McHale

Web developer specializing in membership and ecommerce sites. I like to ride my bicycle.

Leave a Reply

Your email address will not be published. Required fields are marked *