Search Header Logo

Preguntas sobre Laravel

Authored by jeannia lizeth sierra barrera

Other

Professional Development

Used 7+ times

Preguntas sobre Laravel
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Qué comando se usa para crear un nuevo proyecto Laravel?

php artisan new proyecto

composer create-project laravel/laravel proyecto

npm init laravel proyecto

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Dónde se definen las rutas de API en Laravel?

routes/web.php

routes/api.php

app/Http/api.php

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Qué comando ejecuta las migraciones pendientes?

php artisan migrate

php artisan make:migrate

php artisan db:migrate

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Qué método devuelve un JSON en Laravel?

return json()

return response()->json()

Response::json()

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Qué método de Eloquent carga relaciones eficientemente?

load()

with()

attach()

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Cómo se define una relación 'uno a muchos' en Eloquent?

hasOne()

belongsTo()

hasMany()

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

¿Qué hace firstOrFail()?

Retorna el primer registro o null

Retorna el primer registro o lanza 404

Filtra el primer registro que cumpla una condición

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?