laravel 상용 명령 정리

3414 단어 laravel
##    
laravel new blog || composer create-project --prefer-dist laravel/laravel blog

##    
composer install
 
##    
composer update
 
##    
composer remove chensuilong/toastr 
composer dump-autoload

##  artisan  
php artisan
php artisan list
 
##  PHP Web  
php artisan serve
 
##        
php artisan help make:model
php artisan make:model User --migration             
 
##  laravel  
php artisan --version
 
##   PHP             
php artisan serve
 
##        key,       app/config/app.php   key    (          )
php artisan key:generate
 
##  Auth    (            )
php artisan make:auth
 
##             (  503)
php artisan down
php artisan up
 
##  tinker  
php artisan tinker
 
##       
php artisan route:list

##                
php artisan route:cache
php artisan route:clear
 
##      
php artisan passport:install


##    Laravel  
php artisan key:generate
 
##Auth   
php artisan make:auth

##     
php artisan make:controller StudentController
 
##  Rest       (  index、create、store、edit、update、destroy、show  )
php artisan make:controller PhotoController --resource
 
##    
php artisan make:model Student
php artisan make:model User --migration  //          
 
##               
php artisan make:migration create_users_table --create=students //  students 
php artisan make:migration add_votes_to_users_table --table=students// students   votes  
 
##    
php artisan migrate
php artisan migrate:rollback   //        
 
##                 
php artisan make:model Student -m
 
##        
php artisan migrate:rollback
 
##      
php artisan migrate:reset
php artisan migrate:refresh  //     
 
##    
php artisan make:seeder StudentTableSeeder
 
      
php artisan db:seed --class=StudentTableSeeder
 
##      
php artisan db:seed
 
##     (app/Http/Middleware  )
php artisan make:middleware Activity
 
##    (   )    (         )
php artisan queue:table
 
##     (app/jobs ):
php artisan make:job SendEmail
 
##     (app/Http/Requests )
php artisan make:request CreateArticleRequest
php artisan:            ,  php artisan list
php artisan –help:           ,  php artisan help
php artisan –version:        Laravel   
php artisan changes:                  
php artisan down:         
php artisan up:          
php artisan optimize:        ,        ,          bootstrap/compiled.php
php artisan dump-autoload:             ,    optimize     
php artisan clear-compiled:         ,    optimize     
php artisan migrate:      
php artisan routes:             
php artisan serve:   PHP              【   PHP     5.4    】
php artisan tinker:             REPL   ,    Rails     rails console   
php artisan workbench    /  :               workbench     ,       /             Composer       ,          【        app/config/workbench.php      】
php artisan cache:clear:        
php artisan command:make    :  app/commands              .php         
php artisan controller:make     :  app/controllers               .php       
php artisan db:seed:          ,     
php artisan key:generate:        key,       app/config/app.ph   key    
php artisan migrate:install:        
php artisan migrate:make    :    app/database/migrations             +   .php        ,        php artisan dump-autoload   
php artisan migrate:refresh:              
php artisan migrate:reset:         
php artisan migrate:rollback:          
php artisan session:table:       session        

좋은 웹페이지 즐겨찾기