Using Laravel shift on an old laravel project that uses voyager ?
Hello everyone,
So, i have a project that was originally made in laravel 5.6 with laravel voyager. It's been manually upgraded to laravel 9. There are a lot of code that is heavily dependent of voyager (roles and permission for instance).
Never tried, but I wouldn't use Laravel Shift for an upgrade from Laravel 5.6 to Laravel 9.
When you go to the https://laravelshift.com/shifts page, you need to select your Laravel current version and it gives you the needed package : 5.6 to 5.7.
I think that you would have to proceed new version by new version.
@niraj_basnet You will need to ensure you’re upgrading Voyager to a supported version as you’re upgrading your Laravel application version, and following any upgrade guides Voyager has for the version you’re installing.
@martinbean Yeah, I have looked into it. Upgrade seems simple enough. Docs seem to mention laravel 8 or 9. I have not seen anywhere where they mention 9 or newer . Laravel 10 seems fine as it is similar to 9 but i am worried about 10+ and voyager compatibility (voyager seems archived in github as well)
@Niraj_Basnet If Voyager has not been updated (which it doesn’t seem to have been as the official docs were last updated 2 years ago, and only mention Laravel 8/9) then you’ll need to either fork it and maintain it yourself, or replace it with an alternative (such as Filament).
@martinbean Thanks for the suggestion, i will most likely replace the existing voyager code with my own custom code. It seems like only viable solution !
@Niraj_Basnet If you need an admin panel, then maybe take a look at Filament rather than building something yourself from scratch and re-inventing the wheel.