laravel resourece type 1

laravel resourece type

Verb	URI	Action	Route Name
GET	/photos	index	photos.index
GET	/photos/create	create	photos.create
POST	/photos	store	photos.store
GET	/photos/{photo}	show	photos.show
GET	/photos/{photo}/edit	edit	photos.edit
PUT/PATCH	/photos/{photo}	update	photos.update
DELETE	/photos/{photo}	destroy	photos.destroy

Here is what the above code is Doing:
1. The first argument passed to the route() function is a string that contains the URL endpoint.
2. The second argument is the name of the view function that will be called when the URL endpoint is accessed.
3. The third argument is the name of the route. This is used to generate URLs in templates and to name the URL pattern.

Similar Posts