Backend develop
Carlos García Ortega
Created on March 21, 2024
More creations to inspire you
ARTICLES
Presentation
AGRICULTURE DATA
Presentation
THE OCEAN'S DEPTHS
Presentation
C2C VOLUNTEER ORIENTATION
Presentation
LAYOUT ORGANIZATION
Presentation
TALK ABOUT DYS TEACHER-TEACHER
Presentation
TALK ABOUT DYS WITH TEACHER
Presentation
Transcript
Start
Backenddevelopment
Migration & Models
Through laravel we create the table question_img, where we store all the questions with images with the migration that collects the necessary restrictions, and the model that is necessary to define the fields of the table and to be able to operate on the table from the controller.
DATAbase
Controller
6.
showQuestion
This method shows the questions needed to perform the game.
5.
Delete
The delete method is used to delete a question
4.
Update
Update allows us to update a question through its id
3.
Store
The store allows us to save in the database the question that the administrator wants to insert in the database.
2.
Show
The show method is used to return the information of a specific question through its id.
1.
Index
In this method we will return all the questions with their information so that the administrator has all the questions available.
Validation Class
With validation we verify that the data entered are as expected and thus provide security to the application.
Validation
The routes allow us to link a url with the method of the controller and thus to make the operation that we want.the routes of our application are:
Routes
Thanks