can I use the same Controller that I have used for a CRUD, for a RESTFUL API in laravel?
can I use the same Controller that I have used for a CRUD, for a RESTFUL API in laravel? if so, would you give me a short example how to do it? any part of the CRUD returns a view but the RESTFUL API doesn’t, is it possible to use the same controller for both of them?
from Laravel Questions and Answers https://laravelquestions.com/laravel/can-i-use-the-same-controller-that-i-have-used-for-a-crud-for-a-restful-api-in-laravel/
via Lzo Media
No comments:
Post a Comment