I've created an Auth project with laravel 5.5 and created new migration and when I migrate I receive this error msg:
In Connection.php line 647:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists
(SQL: create table `users` (
`id` int unsigned not null auto_increment primary key,
`name` varchar(255) not null,
`username` varchar(255) not null,
`email` varchar(255) not null,
`password` varchar(255) not null,
`remember_token` varchar(100) null,
`created_at` timestamp null,
`updated_at` timestamp null,
`role` int not null
) default character set utf8mb4 collate utf8mb4_unicode_ci
)
In Connection.php line 449:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists
i try php artisan migrate --force and php artisan migrate:rollback
and try to drop all tabels and migrate it again and still ahve this error
php artisan migrate
again – Yosefusers
table. – Niraj Shah