How can we check the Laravel current version?

One can easily check the current version of Laravel installation using the -version option of artisan command. Php artisan -version In Laravel, you can check the current version using the following command in the terminal: bashCopy code php artisan –version This command will display the installed version of Laravel in your project. Alternatively, you can … Read more

What do you know about Facades in Laravel? Explain.

Laravel Facades provide static-like interface classes which are available in the application’s service container. Laravel self-ships with several available facades, gives access to almost all features of Laravel. Facades also help to access a service directly from the container itself. It is described in the Illuminate\Support\Facades namespace. Hence, it is easy to use. Example use … Read more

What do you understand by Unit testing?

Unit testing is built-in testing provided as an integral part of Laravel. It consists of unit tests which detect and prevent regressions in the framework. Unit tests can be run through the available artisan command-line utility. In the context of Laravel, unit testing refers to the practice of testing individual units or components of your … Read more

List some official packages provided by Laravel?

There are some official packages provided by Laravel which are given below: Cashier Laravel cashier implements an expressive, fluent interface to Stripe’s and Braintree’s subscription billing services. It controls almost all of the boilerplate subscription billing code you are dreading writing. Moreover, the cashier can also control coupons, subscription quantities, swapping subscription, cancellation grace periods, … Read more

What do you know about CSRF token in Laravel? How can someone turn off CSRF protection for a specific route?

CSRF protection stands for Cross-Site Request Forgery protection. CSRF detects unauthorized attacks on web applications by the unauthorized users of a system. The built-in CSRF plug-in is used to create CSRF tokens so that it can verify all the operations and requests sent by an active authenticated user. To turn off CSRF protection for a … Read more