Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What Are System Requirement For Laravel 5.0?

Answer»

Following are system REQUIREMENTS:

  • PHP >= 5.4, PHP < 7
  • Mcrypt PHP Extension
  • OpenSSL PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension

Following are system requirements:

2.

What Developed The Laravel?

Answer»

TAYLOR Otwell.

Taylor Otwell.

3.

When Laravel Was Launched?

Answer»

JUNE 2011

June 2011

4.

What Is Current Stable Version Of Laravel?

Answer»

VERSION 5.2.36 DATED JUNE 6, 2016

Version 5.2.36 dated June 6, 2016

5.

In Which Language It Was Written?

Answer»

PHP

PHP. 

6.

What Is Offical Website Url Of Laravel?

Answer»

laravel.com. 

laravel.com. 

7.

Is Laravel An Open Source?

Answer»

Yes, DOWNLOAD the FRAMEWORK and USE as per your requirement 

Yes, Download the framework and use as per your requirement 

8.

How To Install Laravel?

Answer»

We can INSTALL the LARAVEL in following WAYS

We can install the Laravel in following ways. 

9.

What Is System Requirement For Installation Of Laravel 5.2 (latest Version)?

Answer»

10.

What Is Laravel?

Answer»
  • Laravel is a open-source PHP framework developed by Taylor Otwell used for DEVELOPING the websites. 
  • Laravel HELPS you create applications using simple, EXPRESSIVE SYNTAX

11.

What Are Advantages Of Laravel?

Answer»
  • Easy and consistent SYNTAX
  • Set-up process is easy
  • customization process is easy
  • CODE is always regimented with LARAVEL

12.

Explain About Laravel Project?

Answer»
  • LARAVEL is one of the most popular PHP FRAMEWORKS USED for Web Development.
  • This framework is with expressive, elegant syntax. 
  • It is based on model–view–controller (MVC) architectural PATTERN

13.

What Are The Feature Of Laravel 5.0?

Answer»
  • METHOD injection
  • Contracts
  • ROUTE caching
  • Events object
  • MULTIPLE file system
  • Authentication Scaffolding
  • dotenv – Environment Detection
  • LARAVEL Scheduler

14.

Compare Laravel With Codeigniter?

Answer»

Laravel :

  • Laravel is a framework with expressive, elegant syntax
  • Development is enjoyable, creative experience
  • Laravel is built for latest VERSION of PHP
  • It is more OBJECT oriented compared to CodeIgniter
  • Laravel community is still SMALL, but it is GROWING very fast.

Codeigniter :

  • CodeIgniter is a powerful PHP framework
  • Simple and elegant toolkit to create full-featured web applications.
  • Codeigniter is an older more mature framework
  • It is less object oriented compared to Laravel.
  • Codeigniter community is large.

 

Laravel :

Codeigniter :

 

15.

What Are Bundles,reverse Routing And The Ioc Container ?

Answer»
  • Bundles: These are small functionality which you may download to add to your WEB application.
  • Reverse ROUTING: This allows you to CHANGE your routes and application will update all of the RELEVANT links as per this link.
  • IoC container: It gives you Control gives you a method for generating new objects and optionally instantiating and referencing SINGLETONS.

16.

How To Set Database Connection In Laravel?

Answer»

Database CONFIGURATION FILE PATH is : config/database.php

Following are SAMPLE of database file :

 'mysql' =&GT; [
'read' => [
'host' => 'localhost',
],
'write' => [
'host' => 'localhost'
],
'driver' => 'mysql',
'database' => 'database',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],

Database configuration file path is : config/database.php

Following are sample of database file :

 'mysql' => [
'read' => [
'host' => 'localhost',
],
'write' => [
'host' => 'localhost'
],
'driver' => 'mysql',
'database' => 'database',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],

17.

How To Enable The Query Logging?

Answer»

DB::CONNECTION()-&GT;enableQueryLog();

DB::connection()->enableQueryLog();

18.

How To Use Select Query In Laravel?

Answer»

$USERS = DB::SELECT('select * from users where city_id = ?', 10);

if(!empty($users)){
foreach($users as $USER){
}

$users = DB::select('select * from users where city_id = ?', 10);

if(!empty($users)){
foreach($users as $user){
}

19.

How To Use Insert Statement In Laravel?

Answer»

DB::insert('insert into users (ID, name, city_id) VALUES (?, ?)', [1, 'Web technology',10]);

DB::insert('insert into users (id, name, city_id) values (?, ?)', [1, 'Web technology',10]);

20.

How To Use Update Statement In Laravel?

Answer»

DB::update('update USERS SET city_id = 10 where id = ?', [1015]);

DB::update('update users set city_id = 10 where id = ?', [1015]);

21.

How To Use Delete Statement In Laravel?

Answer»

DB::DELETE('delete from USERS where ID = ?', [1015]);

DB::delete('delete from users where id = ?', [1015]);

22.

Does Laravel Support Caching?

Answer»

YES, Its PROVIDES.

Yes, Its provides.