Oct 24, 2018·1 min read
What does -a do? I thought -m created the migration file
Engineer, writer and community organizer. I built Employbl to help candidates get jobs in the Bay Area: https://employbl.com/
Let’s start this project like any other Laravel project. We’ll use php artisan make:model Post -a to scaffold our Post model for our blog. Now, we can hop into the migrations and add some columns.
php artisan make:model Post -a
Get the Medium app