Level 22
Anyone?
I am trying to migrate a project from Laravel 7 to 8 (and finally to 9).
And I wish to use the sail features in dev.
I followed the upgrade steps and the steps to install sail as defined here https://laravel.com/docs/8.x/sail#installation
When I try sail up everything looks fine and the site is rendered.
But when I try to run sail artisan migrate or sail artisan tinker or virtually any sail ... command I get the below error:
mathewparet@gMac vpn % sail artisan tinker
Xdebug: [Config] Invalid mode 'false' set for 'XDEBUG_MODE' environment variable, fall back to 'xdebug.mode' configuration setting (See: https://xdebug.org/docs/errors#CFG-C-ENVMODE)
fatal: unsafe repository ('/var/www/html' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/html
fatal: unsafe repository ('/var/www/html' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/html
How do I fix it?
Note - my DB is sqlite and the host path is set in the .env file. Should I use a guest path? If yes, what would it be? My db file is right now in storage/database.
Please or to participate in this conversation.