Laravel-4-Generator Cheat Sheet

Submitted by river - 등록 5 years ago - 수정 5 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”
comments powered by Disqus