Want to create interactive content? It’s easy in Genially!
Backend develop
Carlos García Ortega
Created on March 21, 2024
Start designing with a free template
Discover more than 1500 professional designs like these:
Transcript
Backend development
Start
DATAbase
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.
Controller
Index
Update
1.
4.
Update allows us to update a question through its id
In this method we will return all the questions with their information so that the administrator has all the questions available.
Delete
Show
2.
5.
The delete method is used to delete a question
The show method is used to return the information of a specific question through its id.
Store
showQuestion
3.
6.
This method shows the questions needed to perform the game.
The store allows us to save in the database the question that the administrator wants to insert in the database.
Validation
Validation Class
With validation we verify that the data entered are as expected and thus provide security to the application.
Routes
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:
Thanks