Support the ongoing development of Laravel.io →
posted 9 years ago
Database

I'm using Laravel 5.2.6 and going through the "Laravel 5 Fundamentals"->"7. Migrations" video on laracasts.com. I haven't changed anything from the out-of-the-box migrations but when I run php artisan migrate, there is no output in the command line and no tables are created. I've tried changing the default database from sqlite to mysql and get the same result. I've tried using -vvv to get the most verbose output I can and still no output at all. If there was a problem running the migrations, I would expect to see an error and if there was nothing to migrate I would also expect to see a message saying so. Have anyone experienced this or have an idea what could be happening?

UPDATE: After setting the permissions on the entire project as 777, I was able to make a new migration. But when I ran php artisan migrate, I got this error: [InvalidArgumentException] Database (/Users/mmickelson/Sites/test2/database/database.sqlite) does not exist. It looks like it's expecting the database to be in the database folder instead of the storage folder... I don't know where this is set but like I said, I'm going through the tutorial without making any big changes to the config files.

UPDATE: I found in database.php, connections=>sqlite=>database was set to database_path('database.sqlite'). Changing that to storage_path('database.sqlite') seems to have fixed it.

I'm still wondering if I did something wrong here. Did the standard practices change since the tutorial? I doubt it's designed to need this editing.

Last updated 3 years ago.
0

I'm unsure of this also.

Just to get past it I created my database.sqlite file in /myproject/database directory using touch in the command line.

$ touch database/database.sqlite

So far it's working but is this the correct way to store it using Laravel 5.2?

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.