Skip to content

Instantly share code, notes, and snippets.

@GuiguiWeb
Last active December 20, 2018 14:19
Show Gist options
  • Save GuiguiWeb/62fd804585dfcc385e26dc5d1395298d to your computer and use it in GitHub Desktop.
Save GuiguiWeb/62fd804585dfcc385e26dc5d1395298d to your computer and use it in GitHub Desktop.
Laravel 5.7 - Installation (macOS)

LARAVEL 5.7

Laravel Requirements

  • PHP >= 7.1.3
  • PHP Extensions (OpenSSL, PDO, Mbstring, Tokenizer, XML, Ctype, JSON and BCMath)
  • MySQL
  • Composer
  • NPM

Initial Setup Requirements

Install Brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install PHP

  • Install PHP 7.2 (with brew) : brew install php@7.2

Install Composer

  • Install Composer (with brew) : brew install composer

Install Node/NPM

  • Install Node/NPM (with brew) : brew install node

Install MariaDB

  • Install MariaDB (with brew) : brew install mariadb

  • Launch MariaDB : mysql.server start

  • Auto-start MariaDB Server : brew services start mariadb

Installing Laravel

  • Install Laravel (with composer) : composer create-project --prefer-dist laravel/laravel project-name
NB: This command create a new folder project-name with fresh Laravel installation
  • Configure Laravel: copy the .env.example file to new .env file and fill in the information from your database.

  • Launch Laravel: php artisan serve

NB: You have to make this command in the folder where laravel is installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment