Skip to content

Instantly share code, notes, and snippets.

@liamr
Last active December 12, 2015 04:49
Show Gist options
  • Save liamr/4717318 to your computer and use it in GitHub Desktop.
Save liamr/4717318 to your computer and use it in GitHub Desktop.
Laravel 4 setup
#Setup
git clone -b develop https://github.com/laravel/laravel.git myproject
cd myproject
mkdir bin
curl -s https://getcomposer.org/installer | php -d detect_unicode=Off -- --install-dir=bin
rm -rf .git #we don't want this to be laravels rep
php bin/composer.phar install
#Config
chmod -R 0777 app/storage
#Create environment in start
mkdir app/config/local
cp app/config/database.php app/config/local/database.php
#configure db
php artisan migrate:make create_users_table --table=users --create #create new migration
#Add this
public function up()
{
Schema::create('users', function($table)
{
$table->increments('id');
$table->string('email')->unique();
$table->string('password');
$table->timestamps();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment