Laravel migrate failed to open stream: No such file or directory

08 Apr, 2019

Hello

If you are having issue of Laravel migrate failed to open stream: No such file or directory, then this post might be helpful for you. Currently, I have the same issue. Let me tell you how did I fix this issue.

Firstly I have run dump-update.

Compose dumpautoload

or

composer dump-autoload

Now you should able to run the migration command-

php artisan make:migration create_users_table

If you are still having the same issue, maybe you can try with

php artisan cache:clear

Because sometimes it happened because of cache issue.

Thank you.

Hello. I’m Thouhedul Islam. Some people also know me as Suchi.

I am a Full-stack Developer. I love to play with PHP specially Laravel, JavaScript, MySql and latest web technology. Currently I am working for CartX as my day time job.

At night I love to solve problem for community. I am quite active at Laracasts