Sometimes we need to refresh only a specific migration/table but our command is for all migrations. So, we can use the trick which we already know and used to run single migration. We can also use it to refresh the specific migration or table.
php artisan migrate:refresh –path=/database/migration/date_create_tableName_table.php
As we can see in the above artisan command, we just need to declare the –path
for the migration. It will show that all other migrations are not found in the given path. It only found one migration and rollback and migrated successfully.
It may seem like an error in red colour but it is not the error it just says that other migrations are not found in the given path but that’s ok. We only need to refresh single migration that’s why we defined the path.
Hope you found it useful. See you in the next quick help.
Today we are going to learn about managing multiple PHP versions on ubuntu with xampp.…
Let's understand about how to use coding to improve your website's SEO. In today’s computerized…
Let's understand the most important linux commands for web developers. Linux, as an open-source and…
Today we are going to discuss top 75+ Laravel interview questions asked by top MNCs.Laravel,…
Today we will discuss about the Mailtrap integration with laravel 10 .Sending and receiving emails…
Today we are going to integrate FCM (Firebase Cloud Messaging) push notifications with ionic application.Firebase…