DEV Community

Cover image for Installing Laravel in Mac (M1)
Emmanuel Morales
Emmanuel Morales

Posted on

Installing Laravel in Mac (M1)

Pre-Requisites

  • I'll use Homebrew as the package manager.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Enter fullscreen mode Exit fullscreen mode

Installing PHP and componser

  • Install php:
brew install php
Enter fullscreen mode Exit fullscreen mode
  • Install composer:
brew install composer
Enter fullscreen mode Exit fullscreen mode

Creating a running a Laravel project

  • Creating the project:
composer create-project laravel/laravel app-name
Enter fullscreen mode Exit fullscreen mode
  • Running the app project
# Change to the project directory:
cd <app-name>
# Run the server:
php artisan serve
Enter fullscreen mode Exit fullscreen mode

Top comments (0)