Laravel Introduction to laravel-5.2 Installation or Setup


Example

Instructions on installing Laravel 5.1 on a Linux/Mac/Unix Machine.

Before initiating the installation, check if the following requirements are met:

  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension

Let's begin the installation:

  1. Install composer. Composer Documentation
  2. Run composer create-project laravel/laravel <folder-name> "5.1.*"
  3. Ensure that the storage folder and the bootstrap/cache folder are writable.
  4. Open the .env file and set the configuration information like database credentials, debug status, application environment, etc.
  5. Run php artisan serve and point your browser to http://localhost:8000. If everything is fine then you should get the page