I try to set Laravel Voyager admin panel to existing project, i have already tables 'users', 'roles', 'permission', 'categories' etc. When I use php artisan voyager:install
, I get an error
Illuminate\Database\QueryException]
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'avatar' (SQL: alter tableusers
addavatar
varchar(191) null afterrole_id
int null afterid
)
Voyager try to run his own migration and this leads to errors, how to tell Voyager to use my tables?
when you install voyager admin panel in laravel it comes with some of table such as user table and permission table so since you have those table in database thus why it tells you column already exists.