There is no table named 'users' in your database yet, you should use 'Schema::create' but not 'Schema:table'
mkblade said:
There is no table named 'users' in your database yet, you should use 'Schema::create' but not 'Schema:table'
I have solved that problem. But my main problem is that i am getting the Application in production prompt whenever i am running a migration.
Does it happen if you put the application in maintenance mode ?
artisan down
Then
migrate
Then
artisan up
This prompt is for your safety. Doing operations on the database in a production environment, you should be very careful. The solution is to set the environment to non-production, or use --force flag.
php artisan migrate --force
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community