Skip to content

Instantly share code, notes, and snippets.

@WoodenDoors
Created January 5, 2015 20:54
Show Gist options
  • Select an option

  • Save WoodenDoors/0d9412abf316e64fed5a to your computer and use it in GitHub Desktop.

Select an option

Save WoodenDoors/0d9412abf316e64fed5a to your computer and use it in GitHub Desktop.
laravel basic install and config

prerequisites

  • Install Composer (https://getcomposer.org/)
  • run composer install in your application's root folder (downloads dependencies and puts them in vendor/)

config and setup

  • edit boostrap/start.php and change in the detectEnvironment-callback 'local' => array('WoodenDoors'), to include the name of your computer
  • edit app/config/local/database.php to match an existing mysql user and database on your machine (the datbase must be empty and match the collation in the database configuration)
  • start a command-prompt in your application's root folder
  • execute php artisan migrate (this sets the database up)
  • execute php artisan db:seed (this fills the database with some data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment