Mosh E-com Services
Kanooz Industrial Services Interview Questions and Answers
Q1. What is middleware and its type
Middleware is software that acts as a bridge between an application and the server, handling requests and responses.
Middleware can modify incoming requests before they reach the application.
It can also modify outgoing responses before they are sent back to the client.
Types of middleware include authentication middleware, logging middleware, error handling middleware, etc.
Examples of middleware in PHP frameworks include Laravel's middleware for authentication and authorization...read more
Q2. What is Eloquent ORM?
Eloquent ORM is an advanced PHP implementation of the Active Record pattern for working with databases.
Eloquent ORM is included with the Laravel PHP framework.
It allows developers to interact with databases using PHP objects instead of writing SQL queries.
Eloquent models represent database tables and can be used to perform CRUD operations.
Relationships between database tables can be defined using Eloquent's model relationships.
Q3. What are commands in laravel?
Commands in Laravel are artisan commands that help developers perform various tasks such as database migrations, seeding, and creating controllers.
Artisan commands are run through the command line interface using the 'php artisan' command.
Some common artisan commands include 'php artisan migrate' for running database migrations, 'php artisan db:seed' for seeding the database with dummy data, and 'php artisan make:controller' for creating a new controller.
Developers can also c...read more
Q4. What is Joins and types
Joins are used to combine rows from two or more tables based on a related column between them.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
INNER JOIN returns rows when there is at least one match in both tables.
LEFT JOIN returns all rows from the left table and the matched rows from the right table.
RIGHT JOIN returns all rows from the right table and the matched rows from the left table.
FULL JOIN returns rows when there is a match in one of the tabl...read more
Q5. What is index ?
Index is a reference point or value that helps in accessing data quickly in an array or database.
Index is a numeric value that represents the position of an element in an array.
It starts from 0 in most programming languages.
Using index, we can quickly retrieve or update data in an array.
For example, in PHP, $arr[0] refers to the first element of the array $arr.
Q6. Reverse routing in laravel
Reverse routing in Laravel is the process of generating URLs based on route names.
Reverse routing helps in generating URLs dynamically without hardcoding them in the views.
It allows for easier maintenance and flexibility when changing routes.
Example: route('profile') will generate the URL for the 'profile' route.
Reviews
Interviews
Salaries
Users/Month