Laravel 5 Setup
Laravel 5 Setup#
-
Install Composer
-
Require the Installer
composer global require "laravel/installer=~1.1"
-
Add
~/.composer/vendor/bin
to yourPATH
export PATH="$HOME/.composer/vendor/bin:$PATH";
-
Create A New Project
laravel new <name of site>
-
Serve the Project
- With Artisan
php artisan serve
- With PHP
php -S localhost:8000 -t public /
-
Update Composer
composer update
Optional: Change namespae