git config --global http.postBuffer 157286400
After this I was able to clone the repo properly.
Happy coding
git config --global http.postBuffer 157286400
After this I was able to clone the repo properly.
Happy coding
When I was trying to migrate a database in Laravel Project using the 'php artisan migrate', I get the below error:
php artisan migrate
Migration table created successfully.
PHP Fatal error: Cannot declare class CreatePasswordResetsTable, because the name is already in use in F:\Projects\database\migrations\2023_11_28_102415_create_password_resets_table.php on line 7 7
[Symfony\Component\Debug\Exception\FatalErrorException]
Cannot declare class CreatePasswordResetsTable, because the name is already in use
First Solution :
2019_01_18_020910_create_Password_Reset_table.php
and 2019_01_16_020910_create_Password_Reset_table.php
Laravel will convert this filename eliminating the date signature and Camel Casing the remaining text.grep -ri 'CreatePasswordResetsTable' database/migrations
You can delete one of the old migration file with the same table name. And run 'php artisan migrate'. It should work.
composer install
'
CreatePasswordResetsTable '
VendorIf it shows any file then that's what causing 2 classes to have same names.
This will create a class CreatePasswordResetsTable which is different than what the package already has.
One of the above solution will solve the issue