Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel apiresource

GET -	    "/photos/{photo}/comments" - index
GET -	    "/photos/{photo}/comments/create" - create
POST -	    "/photos/{photo}/comments" - store
GET -	    "/comments/{comment}" - show
GET -	    "/comments/{comment}/edit" - edit
PUT/PATCH -	"/comments/{comment}" - update
DELETE -	"/comments/{comment}" - destroy
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #apiresource
ADD COMMENT
Topic
Name
1+8 =