Laravel cheatsheet

composer dump-autoload – after manually deleting or renaming migration files


php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users

php artisan migrate:rollback

php artisan migrate:refresh – rollback and run migrate again

php artisan migrate:refresh [--seed] – … and seed


php artisan db:seed

php artisan migrate:refresh --seed

php artisan db:seed --class=UsersTableSeeder


php artisan make:model User [--migration]

php artisan make:controller PhotoController --resource


gulp watchrun gulp an leave it waiting for changes

Publicado en: Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *