If you have composer installed on your host machine, I think you can just do composer require from the root of the project without the "sail" keyword.
Sail project with wrong permission... am I missing something?
I am trying to create a brand new Laravel App using sail.
I´m on a Windows11 machine with WSL2 and a Ubuntu 220.04 Distro The user is "root"
Step 1
curl -s https://laravel.build/example-app | bash
no problem at all!
Step 2
cd example-app
sail up
no error message
Step 3 (the first permission problem)
In the browser, acessing localhost :
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied ...
So I use chmod 775 -R ./storage/ and move ahead.
Step 4
sail composer require laravel/breeze --dev
and receive the error
./composer.json is not writable.
So...
Than I stoped and came here, ´cause I don´t think I should be changing the chmod of all files all the time.
Am I missing something ??
Please or to participate in this conversation.