Want to create interactive content? It’s easy in Genially!

Reuse this 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

Start

Backend development

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