Laravel-modules: Api version handling

Created on 4 Jan 2018  路  3Comments  路  Source: nWidart/laravel-modules

Hello
How can i follow the below structure :-
moduels/api/v1
moduels/api/v2

I tried but not worked

Thanks

All 3 comments

It鈥檚 being loaded from start.php that is being loaded from the service provider iirc.

Thanks for your response @rockymontana
Can you please tell me what configuration is required to work properly

==Working======
http://localhost/myproject/api

===Not Working====
http://localhost/myproject/api/v1/users
http://localhost/myproject/api/v2/users
Thanks
Sandeep

Not really sure why you want to add the complexity of modules if you don鈥檛 have a basic understanding regarding Laravel鈥檚 routing mechanism.

I would recommend going through the laracasts series on Laravel basics, and then use the framework as it is until you鈥檝e gotten a good idea on how to work with these modules.
Otherwise you鈥檒l keep running into problems and eventually you鈥檒l just get tired of it.

No offense.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cyberbaseza picture cyberbaseza  路  4Comments

NexxusPlexx picture NexxusPlexx  路  4Comments

dagulo picture dagulo  路  3Comments

dang-tien picture dang-tien  路  3Comments

guirociozanini picture guirociozanini  路  4Comments