This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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.
Links:
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up