This article is targeted on Laravel beginners. No skills required whatsoever. Article is a tad opinionated, so take it with a grain of salt. Also, details are omitted for the sake of brevity. Thus I will do the actual comparison as well as give several hints to get started. If you’ve never heard of , it is database abstraction layer. Sorta like , but different type: Laravel is active record (AR), while Doctrine is object relational mapper (ORM). Doctrine Eloquent Laravel migrations ( ) docs In Laravel we have folder which stores all migration classes. Laravel also keeps a table in database to keep track of past migrations. The system is dead simple and typical workflow goes as follows: database/migrations — create migration class php artisan make:migration create_foo_column_in_bar_table --table=bar Navigate into file [some numbers]_create_foo_column_in_bar_table.php Manually fill migration methods. Run to trigger method. Run to trigger method. php artisan migrate up php artisan migrate:rollback down Upsides Beginner friendly. Downsides Requires a lot of code. Not noticeable when creating tables, but much more so for complex changes. Migration classes have readable name, and name should be unique. So it’s reasonably possible to get a clash, if you’re not careful enough. Down method is pain to write. It’s a ton of error-prone copypasta. Every migration should be tested, which is very hard to do without method. down All migrations must be kept forever, as they represent your schema. This brings up the humongous migrations folder after you reach several hundred migrations. Doctrine migrations ( ) docs In Doctrine we define schema as annotations on entity classes. Migrations are generated automatically by comparing your current schema to expected one. Migrations are presented in raw SQL and you can tinker them when needed (which is reasonably rare). Here’s your typical workflow: Do changes in entity class. Produce migration from differences: . php artisan doctrine:migrations:diff Glance over migration to see if everything looks as expected. Run migration: php artisan doctrine:migrations:migrate Upsides Less code to type. Most noticeable when renaming columns or moving around indexes. Change one line — doctrine will do the rest. Migrations are named with timestamp. Clashes are very unlikely. method is written automatically. Meaning you can also effortlessly and migrations. You can also move to specific migration. down up down Migrations are disposable. As they can be reliably generated from declarations. Move them, combine or delete with ease. Downsides Requires a bit of studying to get a hang of. Conclusion You might want to use Doctrine migrations even without using whole Doctrine ecosystem. They’re very time efficient and scalable. Laravel migrations are thus admissible only for simplest cases. Some additional info Doctrine allows to create entities with annotation . Those will likely need some fixes, but not as much as creating them from nil. from existing database When using Laravel migrations, don’t employ Eloquent and use query builder only. Or even raw queries to get more on a safe side. Here’s why: you might make migration, change model, make another migration. And there is a possibility that first migration is not compatible with your model anymore. This bug is prone to be found only in test or production environment and might result into partial migration, which is pain to deal with. Use doctrine or Laravel migrations to perform changes on schema only (such as create tables, move columns, attach indexes etc). For data changes you can use my . Or you can build something for yourself on top of Laravel seeders. library Originally published at gist.github.com .