InconsistentMigrationHistory (Migration applied before its dependency)

Can anyone help me to solve this problem?

Please provide more context

i have same error if u find the answer then plz tell me

Welcome @Mohit4289 !

Have you at any point, either manually created a migration file, edited a migration file, or deleted a migration file?

Is this an initial migration you are running, or is this a migration you’re running to update an existing database?

If you have deleted one or more migration files, then the easiest solution is to drop your database and recreate it.