I am following this tutorial here https://www.youtube.com/watch?v=Jbt5bEgv_QM and got stuck in the php artisan migrate part because of this issue. I’m not sure if it’s compatibility issue or something. I am fairly new to laravel.
Here’s the database.php
file and .env
file.
UPDATE: i managed to perform the migration using the solutions provided by the user PHP. However, i couldn’t find the table in my phpMyAdmin. do i need to change mySQL root password for that? i have actually set the password but in .env
and database.php
files i left it blank because the migration works that way. if i set the actual password in both files, I’d get access denied
error.
3
Answers
1)First you have to Create your related Database.
2)Then:php artisan cache:clear
3)Now run php artisan migrate:install
php artisan migrate:rollback
then run php artisan migrate.
If you make changes to your migration files, simply run
php artisan migrate:refresh
Had this issue with a Laravel 10 project and running these commands sorted it for me (run them one by one in the order I’ve typed them):