![]() ![]() ![]() Laravel provides you to enforce constraints between multiple DBM objects by using an advanced query builder mechanism.Laravel has blade template engine to create dynamic layouts and increase compiling tasks.There are three types of dependency injection: 1) Constructor injection, 2) setter injection, and 3) interface injection.Ģ2) What are the advantages of using Laravel? It is a technique in which one object is dependent on another object. Some of the events are fired automatically by Laravel when any activity occurs.Ģ1) Explain dependency injection and their types. You can use enableQueryLog method to enable query log in Laravel.Ģ0) Explain the concept of events in Laravel.Īn event is an occurrence or action that help you to subscribe and listen for events that occur in Laravel application. Service container is a tool used for performing dependency injection in Laravel.ġ9) How can you enable query log in Laravel? Post allows you to send a large amount of data in the body.ġ7) List default packages of Laravel 5.6.ĭefault packages of Laravel 5.6 are: 1) Envoy, 2) Passport, 3) Socialite, 4) Cashier, 5) Horizon, and 6) Scout.ġ8) What is service container in Laravel? Get method allows you to send a limited amount of data in the header. You can register service providers in the config/app.php configuration file that contains an array where you can mention the service provider class name.ġ5) Where will you define Laravel’s Facades?Īll facades of Laravel have defined in Illuminate\Support\Facades namespace.ġ6) State the difference between get and post method. Contracts defined in Laravel include corresponding implementation of framework.ġ4) How will you register service providers? ![]() They are set of interfaces of Laravel framework. You cannot instantiate directly, but its methods can be used in concreate class.ġ3) Explain the concept of contracts in Laravel. Laravel traits are a group of functions that you include within another class. It makes your Laravel application flexible. Reverse routing is a method of generating URL based on symbol or name. Public/: Publicly accessible folder holding compiled assets and of course an index.php file.Ī controller is the “C” in the “MVC” (Model-View-Controller) architecture, which is what Laravel is based on.Database/: Houses the database files, including migrations, seeds, and test factories.env (environment) file at the root of the app. These are usually not modified directly but instead, rely on the values set up in the. Config/: Holds the app’s configuration files.All controllers, policies, and models are inside this folder. App/: This is a source folder where our application code lives.A package can have views, configuration, migrations, routes, and tasks.ĩ) Explain important directories used in a common Laravel application.ĭirectories used in a common Laravel application are: These packages are used to increase the functionality of Laravel. In Laravel, bundles are referred to as packages. By default, there are a few different files corresponding to the different “sides” of the application (“sides” comes from the hexagonal architecture methodology). Routes are stored inside files under the /routes folder inside the project’s root directory. Most commonly, a route simply points to a method on a controller and also dictates which HTTP methods are able to hit that URI. It acts as a pointer in Laravel application. 5) Name aggregates methods of query builder.Īggregates methods of query builder are: 1) max(), 2) min(), 3) sum(), 4) avg(), and 5) count().Ī route is basically an endpoint specified by a URI (Uniform Resource Identifier).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |