table 'users' already exists laravel when migrate laravel

I’m having a problem when I run the migrate command, and I get the following message
Base table or view already exists: 1050 Table ‘users’ already exists

>Solution :

In the Migration part of the up function, type this line at the beginning
if(Schema::hasTable(‘users’)) return;

Leave a Reply