Web Application

Laravel 5

The PHP Framework For Web Artisans

Laravel is a high-level PHP Web framework.

Install Apache Web Server

Follow the Apache installation instructions here.

Install MariaDB Relational Database Server

Follow the MariaDB installation instructions here.

Install PHP

Follow the PHP installation instructions here.

Install PHP Extensions

# Laravel required PHP extensions.
$ sudo dnf install php php-common php-cli php-pdo php-mbstring php-zip php-xml
# Restart Apache
$ sudo systemctl restart httpd

Install Composer

We will need composer to install laravel and it’s dependencies

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ chmod +x /usr/local/bin/composer
$ composer -V

Install laravel installer

$ composer global require "laravel/installer"
# Place the ~/.config/composer/vendor/bin directory in your PATH so the laravel 
# executable can be located by your system.
$ echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc

Restart Terminal. Now you can create a laravel project with the commands

$ laravel new ProjectName


$ cd ProjectName
$ cp .env.example .env
$ nano .env

Edit the .env file with DB_* lines with the correct info



$ php artisan serve
# Laravel development server started on http://localhost:PORT/

Authors: Josef Strzibny, Syed Muhammad Mahmudul Haque