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.
Asked
Active
Viewed 617 times
-4
-
1Why would you want to do that? – theminer3746 Jan 01 '18 at 20:58
-
i want to be able to load only needed providers for each version. – Sergey.Butenko Jan 06 '18 at 17:07
1 Answers
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