Snippets > Laravel Installer


#command-line#composer#laravel#npm#php

First of all, globally install the Laravel Installer in a command prompt:

composer global require laravel/installer

Laravel Basic Installation

  • laravel new app-name
    • [none] No starter kit
    • [0] PHPUnit
    • [y/n] Git repository
    • [mysql] MySQL
  • cd app-name
  • update .env
  • php artisan migrate
  • php artisan serve

Laravel Breeze Installation

  • laravel new app-name
    • [breeze] Laravel Breeze
    • [blade] Blade with Alpine
    • [y] dark mode support
    • [0] PHPUnit
    • [y/n] Git repository
    • [mysql] MySQL
  • cd app-name
  • update .env
  • php artisan migrate
  • npm install && npm run dev
  • php artisan serve

Optional Extras

PHP Debugbar
composer require barryvdh/laravel-debugbar --dev