Laravel

Topics

Laravel 8

Create a simple app

curl -s https://laravel.build/my-simple-app | bash
cd my-simple-app
./vendor/bin/sail up

Create a simple app using Composer

composer create-project laravel/laravel my-simple-app
cd my-simple-app
php artisan serve

Create a simple app using the Laravel Installer

You may install the Laravel Installer as a global Composer dependency:

composer global require laravel/installer
laravel new my-simple-app
php artisan serve

Make sure to place Composer's system-wide vendor bin directory in your $PATH so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:

  • macOS: $HOME/.composer/vendor/bin

  • Windows: %USERPROFILE%\AppData\Roaming\Composer\vendor\bin

  • GNU / Linux Distributions: $HOME/.config/composer/vendor/bin or $HOME/.composer/vendor/bin

Last updated