Laravel specific table Migration

Answers 1
  • Migrate a particular table in laravel

    --PATH /database/migrations/<your_file_name>.php
    php artisan migrate --path=/database/migrations/2021_04_09_053158_create_projects_table.php
    
    0

    You can run a migration command to create a migration for a specific file under the database/migrations folder. Change the file name as per your file name instead of 2021_04_09_053158_create_projects_table.php  in my case and after that run migrate command. You table structure will be successfully created after the migrate command. 

  • Back to code snippet queries related laravel