Laravel - Migrations - Toggling Foreign Key Constraints

You may enable or disable foreign key constraints within your migrations by using the following methods:

    
    Schema::enableForeignKeyConstraints();
    
    Schema::disableForeignKeyConstraints();
	
SQLite disables foreign key constraints by default. When using SQLite, make sure to enable foreign key support in your database configuration before attempting to create them in your migrations. In addition, SQLite only supports foreign keys upon creation of the table and not when tables are altered.