Detailed instructions on getting laravel set up or installed.
composer is required for installing laravel easily.
There are 3 methods of installing laravel in your system:
Via Laravel Installer
Download the Laravel installer using composer
composer global require "laravel/installer"
Before using composer we need to add ~/.composer/vendor/bin to PATH. After installation has finished we can use laravel new command to create a new project in Laravel.
Example:
laravel new {folder name}
This command creates a new directory named as site and a fresh Laravel installation with all other dependencies are installed in the directory.
Via Composer Create-Project
You can use the command in the terminal to create a new Laravel app:
composer create-project laravel/laravel {folder name}
Via Download
Download Laravel and unzip it.
composer install.env.example to .env via teminal or manually.
cp .env.example .env
.env file and set your database, email, pusher, etc. (if needed)php artisan migrate (if database is setup)php artisan key:generatephp artisan serve