Category: Laravel Interview Question
-
How can you make real time sitemap.xml file in Laravel?
You can create all web pages of a website to tell the search engine about the organizing site content. The crawlers of search engine read this file intelligently to crawl a website.
-
Explain Auth.
It is a method of identifying user login credential with a password. In Laravel it can be managed with a session which takes two parameters 1) username and 2) password.
-
How to configure a mail-in Laravel?
Laravel provides APIs to send an email on local and live server.
-
What is the use of dd() function?
This function is used to dump contents of a variable to the browser. The full form of dd is Dump and Die.
-
Explain fluent query builder in Laravel.
It is a database query builder that provides convenient, faster interface to create and run database queries.
-
Which class is used to handle exceptions?
Laravel exceptions are handled by App\Exceptions\Handler class
-
How can you generate URLs?
Laravel has helpers to generate URLs. This is helpful when you build link in your templates and API response.