Laravel Paper 4
Laravel Paper 4
C
To provide a way to connect to a database in a RESTful API.
To provide a way to generate documentation for a RESTful API.
1-c. Choose the directive which is used to listen to an event on an element in Vue.js. 1
(CO2)
(a) v-on
(b) v-bind
(c) v-show
(d) v-model
1-d. Select the HTTP method which is used to partially update data on a server in 1
Inertia.js. (CO2)
(a) GET
.
Page 1 of 4
.
(b) POST
(c) PUT
(d) PATCH
1-e. Choose how we can override the default Laravel authentication configuration. 1
(CO3)
(a) By modifying the .env file
(b) By modifying the config/auth.php file
(c) By modifying the routes/web.php file
(d) By modifying the resources/views/auth/login.blade.php file
1-f. Select the command that is used to install Laravel Faker in a Laravel application. 1
(CO3)
(a) composer require laravel/faker
(b) composer install faker
(c) composer add faker/laravel
(d) composer faker/laravel require
1-g. Choose function from given option that is used to retrieve values from the 1
configuration file in Laravel (CO4)
(a) config()
(b) retrieve()
(c) settings()
2 4
1-h.
(d) get()
2 0
In Laravel, select a query event that is fired after a query is executed. (CO4) 1
(a)
(b)
L Y
Illuminate\Database\Events\QueryExecuted
Illuminate\Database\Events\QueryBuilding
JU
(c) Illuminate\Database\Events\QueryExecuting
1-i.
(d)
P.
Illuminate\Database\Events\QueryStarted
Choose which of the following command that is used to generate a new Laravel 1
controller. (CO5)
(a)
CO
php artisan generate:controller
(b) php artisan controller:make
(c) php artisan make:controller
(d) php make:controller
1-j. Choose the correct default location of the optimized autoload files in Laravel 1
Forge. (CO5)
(a) /vendor/autoload.php
(b) /vendor/composer/autoload.php
(c) /vendor/composer/autoload_real.php
(d) None of these
.
Page 2 of 4
.
3.g.
Query Builder. (CO4)
2 0
Explain how you set up a production database for a Laravel application. (CO5) 6
SECTION-C
4. Answer any one of the following:-
L Y 50
4-a.
. JU
Explain terminable Middleware in Laravel and how does it work. Discuss the key
features of Terminable Middleware and how it differs from standard Middleware
10
4-b.
in Laravel. (CO1)
O P
Discuss the various benefits of using Method Injection, such as enabling optional 10
C
dependencies, facilitating method chaining, and simplifying the configuration of
dynamic dependencies. (CO1)
5. Answer any one of the following:-
5-a. Create a Vue.js application with a component that takes user input and displays it 10
in real-time. Use template syntax and expressions to achieve this functionality.
(CO2)
5-b. Implement a Vue.js component that displays a form with two input fields: 10
username and password. Use v-if and v-else to conditionally show different parts
of the form based on whether the user is already logged in or not. (CO2)
6. Answer any one of the following:-
6-a. Discuss how you can allow users to login using either their username or email in 10
.
Page 3 of 4
.
2 4
2 0
L Y
. JU
O P
C
.
Page 4 of 4