Laravel in a Container
Migrations & Eloquent
Lesson 3 of 4
Define your Postgres schema in versioned migrations, then read and write it with Eloquent models.
What you'll learn
- Write a migration that builds a Postgres table
- Understand migrations as version control for your schema
- Read and write rows with an Eloquent model
Members only
A free account unlocks this lesson and every other one.
Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.
Not sure yet? Try the free lesson first: The Dockerized setup