php artisan make:controller NombreController
php artisan make:model ModelName- Create a new model with table relation like:
- model name with
Capitalize letter and singular in englishworks with a table name inlowercase and plural in english
- model name with
- Create a new model with table relation like:
This module help us to use eloquent methods through command line. More info about tinker
php artisan migrate- Execute migrations
php artisan make:migration "create {tableName} table"- Create a new migration with create_nametable_table structure
php artisan migrate:rollback- Revert last migration
php artisan migrate:fresh- Drop all the tables and migrate them again
php artisan migrate:refresh- Execute one by one down method for migrations and migrate them again
php artisan make:migration "add {columnName} to {tableName} table- Create a new migration to add a new column for a created table