While I'm trying to install a Laravel application, I encounter a different result on my localhost, and on the server:
By doing:
git clone -b my_branch http://my_repo.git test && cp ./saved/.env ./test && cd ./test && composer install && php artisan migrate
php artisan migrate
is returning the error:
Symfony\Component\Debug\Exception\FatalErrorException : Cannot declare class CreateTelescopeEntriesTable, because the name is already in use
but only on the distant server (Ubuntu), and not on my localhost (Debian)
The two files in conflict are:
(It's confirmed, if I remove one of them the migration is running)
So, I'm wondering why the artisan migrate is loading the vendor migration, only on the server.
Did you encounter something like this, what should I check?
For me the correct behavior is the one on my localhost.
Thanks
Edit: Okay, that was stupid, my migration table was different, with migrate:fresh I got the same problem on the two sides
Your migration table was different, with migrate:fresh you will got the same problem on the two sides.