By OnlineInterviewQuestions com Php laravel Interview Questions What is Laravel?



Download 39.11 Kb.
View original pdf
Page2/9
Date17.09.2022
Size39.11 Kb.
#156480
1   2   3   4   5   6   7   8   9
laravel-interview-questions

Laravel validation Example
$validatedData = $request->validate([
'name' => 'required|max:255',
'username' => 'required|alpha_num',
'age' => 'required|numeric',
]);
Q4.
How to install laravel via composer ?
The installation of Laravel via composer is very easy. You can install Laravel via composer by running the below command in the command prompt.
composer create-project laravel/laravel your-project-name version
Also, Read Tips to Crack PHP Interview Questions
Q5.
List some features of laravel 6 ?
Laravel 6 features
Inbuilt CRSF (
cross-site request forgery ) Protection.
Inbuilt paginations
Reverse Routing
Query builder
Route caching
Database Migration
IOC (Inverse of Control) Container Or service container.
Job middleware
Lazy collections
Q6.
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 artisan 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
Q7.
List some default packages provided by Laravel Framework?
Below area list of some official default packages provided by Laravel
Cashier
Envoy
Passport
Scout
Socialite
Horizon
Telescope
Q8.
What are named routes in Laravel?
Named routing is another amazing feature of Laravel framework. Named routes allow referring to routes when generating redirects or Urls more comfortably.
You can specify named routes by chaining the name method onto the route definition:
Route::get('user/profile', function () {
//
})->name('profile');

Download 39.11 Kb.

Share with your friends:
1   2   3   4   5   6   7   8   9




The database is protected by copyright ©essaydocs.org 2022
send message

    Main page