Skip to content

MVC Help

jonzenor edited this page Jan 1, 2020 · 1 revision

Resources Used

Creating the MC in MVC

Create the model and migration file. The name of this is singular, but the name of the table will usually be plural (users table, not user table).

php artisan make:model User --migration

Create just a migration file.

php artisan make:migration name_of_migration_file

Create the controller, with filled in basic CRUD resources. Note the name is singular

php artisan make:controller UserController --resource

Clone this wiki locally