Friday, March 10, 2017

Laravel Voyager: how to use my migration instead of Voyager

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 table users add avatar varchar(191) null after email, add role_id int null after id)

Voyager try to run his own migration and this leads to errors, how to tell Voyager to use my tables?



via Odin Thunder

Advertisement