Top 20 Laravel Interview Questions and Answers : शीर्ष 20 लारवेल इंटरव्यू प्रश्न तथा उत्तर

Top 20 Laravel Interview Questions and Answers

Top 20 Laravel Interview Questions and Answers

Question 1. What is full form of CSRF in Laravel (Laravel में CSRF का पूर्ण रूप क्या है)?

Answer – The full form of CSRF/ is Cross-Site Request Forgery ( क्रॉस साइट अनुरोध जालसाजी ).

Question 2. What is full form of MVC in programming (प्रोग्रामिंग में MVC का पूर्ण रूप क्या है)?

Answer – The MVC is stand for Model-View-Controller (MVC का अर्थ है मॉडल-व्यू-कंट्रोलर).

Question 3. What is .env file in Laravel (Laravel में .env फ़ाइल क्या है)?

Answer – The “.env” file called an environment file. It is a text file used for store configuration settings of a web application (“.env” फ़ाइल को एनवायरनमेंट फ़ाइल कहा जाता है। यह एक टेक्स्ट फ़ाइल है जिसका उपयोग वेब एप्लिकेशन की कॉन्फ़िगरेशन सेटिंग्स को संग्रहीत करने के लिए किया जाता है).

Question 4. What is the full form of API in programming (प्रोग्रामिंग में येपीआई का पूर्ण रूप क्या है)?

Answer – The full form of API is Application Programming Interface (एप्लीकेशन प्रोग्रामिंग इंटरफ़ेस).

Question 5. Define the routes in Laravel (Laravel में रूट परिभाषित करें)?

Answer – Routes define the URLs of your web applications in Laravel (रूट्स Laravel में आपके वेब एप्लिकेशन के URL को परिभाषित करते हैं). It is written in “web.php” file as –
Curly Braces – Route :: get( ‘posts/{postId}’, [ControllerName :: class, ‘MethodName’ ] );

Question 6. What is the role of middleware in Laravel (लारवेल में मिडलवेयर की क्या भूमिका है)?

Answer – The role of middleware is HTTP Request Filtering, Response Handling, Request Modification, Security and permissions etc. (मिडलवेयर की भूमिका HTTP अनुरोध फ़िल्टरिंग, प्रतिक्रिया प्रबंधन, अनुरोध संशोधन, सुरक्षा तथा अनुमतियाँ आदि हैं).

Question 7. What is helper and roles in Laravel (लारवेल में हेल्पर और भूमिकाएँ क्या हैं)?

Answer – The main function of Laravel Helper is encapsulate code into reusable functions, reduce programming code and globally accessible in whole application (लारवेल हेल्पर का मुख्य कार्य कोड को पुन: प्रयोज्य कार्यों में समाहित करना, प्रोग्रामिंग कोड को कम करना तथा पूरे एप्लिकेशन में वैश्विक रूप से सुलभ बनाना है).

Question 8. What is the work of CSRF protection in Laravel (लारवेल में सीएसआरएफ सुरक्षा का क्या कार्य है)?

Answer – In the Laravel, every form uses CSRF tokens for protect against the CSRF attacks (लारवेल में, प्रत्येक फॉर्म सीएसआरएफ हमलों से सुरक्षा के लिए सीएसआरएफ टोकन का उपयोग करता है). It is written @csrf in Blade file.

Question 9. What is the MVC architecture in Laravel (लारवेल में एमवीसीआर्किटेक्चर क्या है)?

Answer – Laravel is fully Model-View-Controller (MVC) web programming PHP framework. In the Laravel, “Views” present data for the user, “Models” handle the data and “Controllers” manage requests & bind the view and the model (लारवेल में, “व्यूज़” उपयोगकर्ता के लिए डेटा प्रस्तुत करते हैं, “मॉडल्स” डेटा को संभालते हैं और “कंट्रोलर” अनुरोधों का प्रबंधन करते हैं और व्यू और मॉडल को जोड़ते हैं).

Question 10. In which file, the database connection is written in Laravel (Laravel में डेटाबेस कनेक्शन किस फ़ाइल में लिखा गया है)?

Answer – The configuration file of database is database.php of Laravel. The path of file is config/database.php (डेटाबेस की कॉन्फ़िगरेशन फ़ाइल Laravel की database.php है। फ़ाइल का path config/database.php है)

How to add Captcha in Laravel ...

Top 20 Laravel Interview Questions and Answers

Tags: Laravel Interview Questions, Laravel interview questions and answers, Laravel Interview Questions for Freshers, Top 20 Laravel Interview Questions and Answers

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *