Database Migrations introduction

First, let’s use a migration to define a database table to hold all of our tasks. Laravel’s database migrations provide an easy way to define your database table structure and modifications using fluent, expressive PHP code. Instead of telling your team members to manually add columns to their local copy of the database, your teammates can simply run the migrations you push into source control.

So, let’s build a database table that will hold all of our tasks. The Artisan CLI can be used to generate a variety of classes and will save you a lot of typing as you build your Laravel projects. In this case, let’s use the make:migration command to generate a new database migration for our tasks table

Leave a Reply

Your email address will not be published. Required fields are marked *