Laravel 13 · Models and database

Create a migration

Generate a migration file for a new posts table, then define its columns in the generated file.

php artisan make:migration create_posts_table

Official Laravel 13 documentation

More models and database commands

All models and database commands · Laravel 13 cheatsheet

Was this page helpful?