Problem update and/or migrato to v5

i’m using invoiceninja v4.5.21, and i’ve installed the latest v5 version in another location, i’ve tried to migrate the v4 to v5 but it doesn’t work, so i’ve seen that i need to update the v4 to the latest, so i’ve downloaded the latest 4.5.48, overwritten the file of the .21 but i get error

In Container.php line 752:
  Class LaravelCrawlerDetect does not exist  

or other kind or similar error in laravel, so any suggestion on how to update my v4 version so i can migrate to v5 ?

i’ve also tried to remove eveything except .env but it doesn’t work as it ask me to run the setup again …



If you can run

composer dump

and see if that helps?