can I use the same Controller that I have used for a CRUD, for a RESTFUL API in laravel? - development

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

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development