Skip to main content

Search Results for "migrations"

We found 23 results for "migrations".

Tutorial 4 min read Free

REVIEW: 3 Tools to Generate Laravel Migrations from Existing Database

Recently I've found a few interesting tools that help generate Laravel migrations automatically from your already existing database schema. In theory it looks very cool, but we decided to test them - I asked a colleague to actually try them all out with real demo-projects. How do they generate filenames and field types? Additional rules? Foreign keys? Do they actually work? Let's take a look.

Tutorial 2 min read Free

Do we still need Down migrations? Taylor says No.

On the last episode of Laravel Podcast, Taylor Otwell said something controversial but I had a gut feeling about it for a long time. So, do you actually use down() method in migrations, and rollback them?

Video 7:17 mins Free

Laravel Foreign Keys: How to Deal with Errors

There are a lot of sub-topics in this video. Why do you need foreign keys? What happens if you don't create them? How to override default errors? Check for child records on the front-end and the back-end? Use if-else or try-catch? Let's dive in.

Quick Tip

Create Migration with Spaces

When typing `make:migration` command, you usually use underscore symbol between parts, like `create_transactions_table`. But, alternatively, you can also put the name in quotes and use a SPACE as a delimiter.

Package 2779 stars Last updated November 2025

kitloong/laravel-migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema

Tutorial 2 min read Free

Back to the future: database migrations with dates from the past

Migrations are a really useful tool to keep the database structure in sync with all environments and for all team members. And whenever we generate a new migration - its filename has a pattern of date_time_name.php. But what if you need to add a table which was in the database long time ago and created manually? How to add it into migrations folder and specify its time in the past?

Tutorial 2 min read Free

Change Default Migrations DB Table in Config

By default, Laravel migration mechanism stores all the operations in database table migrations. Did you know that you can change it? I will show you how and why would you need it.