Search Header Logo

Módulo 3: Frameworks

Authored by Borja Ugalde

Professional Development

1st Grade

Used 6+ times

Módulo 3: Frameworks
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

¿Cuál es el comando artisan para crear un controlador? ¿Dentro de qué carpeta se crea ese controlador?

php artisan make: __________ NombreController

app/Http/Controllers

controller

http

2.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

¿Cómo buscarías un registro del modelo Persona por el campo de id? Escribe el código.

$_______ = App\Persona::find($id);

persona

modelo

3.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

¿Cómo buscarías un registro del modelo Persona por un campo llamado ‘nombre’?

$ ------- = App\Persona::where('nombre', $nombre);

persona

nombre

4.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Si una vista de Blade tiene una sección definida con @section(‘cabecera’), ¿qué código deberá contener la vista “padre” para que se incluya en su vista lo definido en el hijo?

@include(‘--------’)

cabecera

padre

5.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

¿Cómo podemos indicar qué solo usuarios autenticados puedan acceder a una ruta de nuestro router?

----::routes();

Route::get('ruta', function () {

})->middleware('auth');

Auth

Route

6.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

¿Cómo podemos comprobar si un usuario está autenticado?

-- (Auth::check()) {

}

if

for

7.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

¿Cuál es el comando artisan para borrar las tablas de la base de datos y lanzar las migraciones?

php artisan make:--------- create_articulos_table --create=articulos

migration

for

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?