Laravel-4-Generator Cheat Sheet
Submitted by river -
등록 10 years ago - 수정 10 years ago
Laravel 필수 패키지 중 하나인 Laravel-4-Generators의 Cheat Sheet
$ php artisan generate:migration create_posts_table
$ php artisan generate:migration create_posts_table --fields="title:string, body:text”
$ php artisan generate:model Post
$ php artisan generate:view posts.index
$ php artisan generate:pivot posts tags
$ php artisan generate:resource post --fields="title:string, body:text”
$ php artisan generate:scaffold post
alias로 설정을 해놓으면 쓰기가 편하다.
alias g:m="php artisan generate:model"
alias g:c="php artisan generate:controller"
alias g:v="php artisan generate:view"
alias g:s="php artisan generate:seed"
alias g:mig="php artisan generate:migration"
alias g:r="php artisan generate:resource”
Stats
-
1 like
- 2647 views