Deploying Migrations6:43 with Jonathan Barrios
Most applications connect to a database and use the existing structure or schema but this can lead to problems during development since the same database structure for each instance cannot be ensured. Laravel solves this development challenge by using Migrations, which allows team members to share the app's database schema. Migrations are instructions that Laravel gives to the database to create tables, foreign key constraints like ‘STRING’, ‘INTEGERS’, and everything else you might need for your database. With one command, every developer will have an identical database, problem solved. We already created our Model using the php artisan make:model command and now we’re ready to deploy our migration! Let’s check it out.
You need to sign up for Treehouse in order to download course files.Sign up