Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to create a route for resources in laravel?
Home
Laravel
How to create a route for resources in laravel?
+1
vote
asked
Jul 12, 2021
in
Laravel
by
sharadyadav1986
How to create a route for resources in laravel?
ceate-route
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 12, 2021
by
sharadyadav1986
For creating a resource route we can use the below command:
Route::resource('blogs', BlogController::class);
This will create routes for six actions index, create, store, show, edit, update and delete.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+1
vote
Q: What are the default route files in Laravel?
asked
Jul 10, 2021
in
Laravel
by
SakshiSharma
default-route
laraval-route-file
+1
vote
Q: What is Middleware and how to create one in Laravel?
asked
Jul 12, 2021
in
Laravel
by
sharadyadav1986
middleware
middleware-laravel
0
votes
Q: What HTTP status code S should be returned for Route 53 to consider your resources healthy?
asked
Mar 13, 2022
in
Azure
by
rajeshsharma
route-53
0
votes
Q: Is there any CLI for Laravel?
asked
Jun 27, 2023
in
Laravel
by
SakshiSharma
cli-laravel
+2
votes
Q: Can we use Laravel for Full Stack Development (Frontend + Backend)?
asked
Jul 10, 2021
in
Laravel
by
SakshiSharma
laravel
full-stack-development
0
votes
Q: How to configure a mail-in Laravel?
asked
Oct 23, 2023
in
Laravel
by
rajeshsharma
mail-inlaravel
0
votes
Q: How to use the custom table in Laravel Model?
asked
Oct 25, 2023
in
Laravel
by
rajeshsharma
customtable
0
votes
Q: How to Rollback one specific migration in Laravel?
asked
Jun 27, 2023
in
Laravel
by
Robindeniel
laravel-migration
+1
vote
Q: How to define routes in Laravel?
asked
Jul 12, 2021
in
Laravel
by
sharadyadav1986
define-route
laravel
+2
votes
Q: How to do request validation in Laravel?
asked
Jul 11, 2021
in
Laravel
by
rajeshsharma
request-validation
validation-request
...