Artisan & Migrations
Artisan: Laravel's built-in CLI for everyday development tasks (migrations, seeding, generating boilerplate): a dev tool, not part of the application served to users.
Migration: a PHP file that defines a database schema change in code, so the schema can be rebuilt consistently on any machine.
- Treat migrations like version control for the schema: a new change means a new migration file, never edit an old migration that's already run elsewhere
- The
--seed option fills tables with realistic sample data for practice and demos