2. What is Laravel?
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.
It is based on model–view–controller (MVC)
architectural pattern.
3. Benefits of Laravel over other Php
frameworks
1). Setup and customization process is easy and fast as
compared to others.
2). Inbuilt Authentication System.
3). Supports multiple file systems.
4). Pre-loaded packages like Laravel Socialite, Laravel cashier,
Passport,Laravel Scout.
5). Built in command line tool “Artisan” for creating a code
skeleton ,database structure and build their migration.
4. History of Laravel
Laravel 1 was released in June 9, 2011.
Laravel 1 included built-in support for authentication, localisation,
models, views, sessions, routing and other mechanisms, but
lacked support for controllers that prevented it from being a true
MVC framework.
Laravel 2 was released in September 2011, bringing various
improvements from the author and community.
Major new features included the support for controllers, which
made Laravel 2 a fully MVC-compliant framework.As a downside,
support for third-party packages was removed in Laravel 2.
5. Server requirements To install Laravel
PHP >= 5.6.4
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
6. Checking PHP version
To check your PHP version, please type below
command on your Terminal.
php -version
if your php version is less than 5.6.4 ,then
you need to upgrade your Php version.
9. Install Mbstring PHP Extension
Run below command to install Mbstring PHP
Extension
sudo apt-get install php7.0-mbstring
Installing XML PHP Extension
sudo apt-get install php7.0-xml
Restarting apache after installation of XML &
Mbstring PHP Extension
sudo service apache2 restart
10. Installing latest laravel Framework.
Run below command to install Laravel
composer create-project --prefer-dist laravel/laravel blog
Checking installed version of laravel.
php artisan -V
Start Local Development Server
php artisan serve
This command will start a development server at
http://localhost:8000:
11. Change folder permissions
Run below command to folder permissions
sudo chmod -R 777 public/ storage/ bootstrap/
Now access it from the browser to check
http://localhost:8000:
12. What are Advantages of Laravel?
1). Easy and consistent syntax.
2). Set-up process is easy.
3). customization process is easy.