Laravel Interview Questions And AnswersSubmit a Question

5. List out some latest features of Laravel Framework

  • Inbuilt CRSF (cross-site request forgery ) Protection.
    Laravel provided an easy way to protect your website from cross-site request forgery (CSRF) attacks.
    Cross-site request forgeries are malicious attack that forces an end user to execute unwanted actions on a web application in which they’re currently authenticated.

  • Inbuilt paginations Laravel provides an easy approach to implement paginations in your application.Laravel’s paginator is integrated with the query builder and Eloquent ORM and provides convenient, easy-to-use pagination of database.

  • Reverse Routing
    In Laravel reverse routing is generating URL’s based on route declarations.Reverse routing makes your application so much more flexible.

  • Query builder:
    Laravel’s database query builder provides a convenient, fluent interface to creating and running database queries. It can be used to perform most database operations in your application and works on all supported database systems.

    The Laravel query builder uses PDO parameter binding to protect your application against SQL injection attacks. There is no need to clean strings being passed as bindings. read more

  • Route caching

  • Database Migration

  • IOC (Inverse of Control) Container Or service container.

6. What is composer ?

Composer is PHP dependency manager used for installing dependencies of PHP applications.
It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

It provides us a nice way to reuse any kind of code. Rather than all of us reinventing the wheel over and over, we can instead download popular packages.

8. What is php artisan. List out some artisan commands ?

PHP artisan is the command line interface/tool included with Laravel. It provides a number of helpful commands that can help you while you build your application easily. Here are the list of some artisian command.

  • php artisan list
  • php artisan help
  • php artisan tinker
  • php artisan make
  • php artisan –versian
  • php artisan make model model_name
  • php artisan make controller controller_name

Leave a Reply

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