Top "Laravel-migrations" questions

Database Migrations in Laravel are the way to create and alter database schema.

Changing Laravel MYSQL to utf8mb4 for Emoji Support in Existing Database

I am using Laravel 5.3 and I have already set-up my production server. All DB Migrations were already created using the …

mysql laravel laravel-5.3 emoji laravel-migrations
Laravel migration - Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails

I am trying to run a migration for a table inventories that I have created with this migration: Schema::create(…

mysql laravel laravel-migrations
Laravel 5.1 How do you create a MySQL stored procedure with migration

Hello I'm trying to create a stored procedure using Laravel 5.1 migrations. So far I tried with DB::connection()->…

php mysql stored-procedures laravel-5.1 laravel-migrations
Creating database view in migration laravel 5.2

I'm trying to create a database view via a migration in Laravel 5.2 as I need to hand a fairly complex …

laravel laravel-5.2 laravel-migrations laravel-query-builder
How to set auto increment into non primary key?

How would I set a database auto increment field that is not a primary key on the creation method? The …

laravel laravel-migrations laravel-schema-builder
Can't start Laravel, I get "Base table or view not found" error

First I rolled back 2 migrations by mistake, then I ran php artisan migrate command and I got the following error: […

php laravel laravel-migrations
How to run laravel migration and DB seeder except one

I am having many migration and seeder files to run, Although I will need to run all files but currently …

php laravel laravel-migrations laravel-seeding
How to specify folder for laravel migrations?

I am trying to put laravel migrations in database sub folder, but not sure how to do this.

laravel laravel-migrations