In Laravel, creating a resource route for your Student model is quite simple.

This will automatically register the following routes for the students resource:

HTTP MethodURIActionRoute Name
GET/studentsindexstudents.index
GET/students/createcreatestudents.create
POST/studentsstorestudents.store
GET/students/{student}showstudents.show
GET/students/{student}/editeditstudents.edit
PUT/PATCH/students/{student}updatestudents.update
DELETE/students/{student}destroystudents.destroy

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top