samedi 18 juin 2016

Laravel Artisan: Migrate not creating new table

I installed Laravel using composer create-project --prefer-dist laravel/laravel myapp.

I set DB credentials in my .env file.

I proceeded with php artisan make:auth.

Now I am running into issues when I do:

$ php artisan migrate
Migrated: 2014_10_12_000000_create_users_table

This creates a migration table in my DB but not create_users_table in the DB.

I cannot figure out why. Here is some information:

$ php artisan migrate:status
+------+--------------------------------------+
| Ran? | Migration                            |
+------+--------------------------------------+
| Y    | 2014_10_12_000000_create_users_table |
+------+--------------------------------------+

Also I have verified that my (default) migration file looks like this: http://ift.tt/1Ow49ID.

I have read that running composer dump-autoload could help. This has not been the case.

The DB user has full privileges.

Any ideas?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire