-4

I wanted to make versioning like a domain. So inside app directory i want to move all folders into v1, v2, etc. So it will be App\v1, App\v2 namespaces. I need an advice, how to re-write bootstrap/app.php file, to instruct laravel to load only providers needed for the particular version. Where to put admin panel ? Thanks for answer.

1 Answers1

0

Don't modify the bootstrap classes, instead go with this structure for API:

App
  Http
    Api
      V1
        -ApiController.php
 Controllerphp
 OtherWebController.php
Nik
  • 145
  • 9
Mahdi Younesi
  • 6,889
  • 2
  • 20
  • 51