Skip to content

Instantly share code, notes, and snippets.

@felixwetell
Last active August 16, 2022 14:46
Show Gist options
  • Save felixwetell/37e9778a93563d92e751bf9b1e25f5b2 to your computer and use it in GitHub Desktop.
Save felixwetell/37e9778a93563d92e751bf9b1e25f5b2 to your computer and use it in GitHub Desktop.
macOS - Installation guide for Laravel 8.x

macOS - Installation guide for Laravel 8.x

Using Brew, Composer, PHP 7.4.3 and Laravel 8.x

Installation guide

  1. Install Brew package manager
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install PHP using the command brew install php
    • If PHP is already installed, just run the command brew upgrade php to get the latest version
  3. Install Composer using the command brew install composer
  4. Using the command line, head to the folder where you want your project
  5. Now time to create the project, run the command composer create-project --prefer-dist laravel/laravel example
    • "Example" can be changed to whatever you want
    • This might take couple of minutes, be patient
  6. Using the command line, go to your new project folder. Run the command php artisan serve.
  7. Your server is now up and running on the listed IP-address.

Issues

  1. Homebrew-core is a shallow clone, urn the mentioned command to fix this issue.
Error: 
	homebrew-core is a shallow clone. 
To `brew update`, first run: 
	git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment