Skip to content

Instantly share code, notes, and snippets.

@fraank
Last active August 29, 2015 14:23
Show Gist options
  • Save fraank/de1107abdd1a66cf8d2f to your computer and use it in GitHub Desktop.
Save fraank/de1107abdd1a66cf8d2f to your computer and use it in GitHub Desktop.
laravel cheatsheet
add laravel Installer:
composer global require "laravel/installer=~1.1"
add path for laravel-command
PATH=$PATH:~/.composer/vendor/bin
PATH=~/.composer/vendor/bin:$PATH
Now you can do..
laravel new yournewproject
Maybe you want so set the Namespace of your new App
php artisan app:name Yournewproject
Set your Key:
php artisan key:generate
You can run a standalone php server for your application with (replace the ip with yours), so you don't need to add an virtual host
php -S 0.0.0.0:4000 -t public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment