ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • php artisan
    [공부] 프로그래밍/Laravel (PHP) 2023. 5. 3. 20:30
    반응형

     

    // 실행
    php artisan migrate
    
    // 현재
    php artisan migrate:status
    
    // 되돌리기
    php artisan migrate:rollback
    
    // 테이블 생성
    php artisan make:migration create_테이블명_table
    
    // alter문 생성
    php artisan make:migration alter_deleted_at_users --table=users
    
    // seed 생성
    php artisan make:seeder ItemsTableSeeder
    
    // seed 실행
    php artisan db:seed --class=ItemsTableSeeder
    
    //seeds 에러 발생 시
    composer dump-autoload
    
    // 클린 실행
    php artisan view:clear
    php artisan config:clear
    php artisan cache:clear

     

    반응형
Designed by Tistory.