Last active
December 12, 2015 04:49
-
-
Save liamr/4717318 to your computer and use it in GitHub Desktop.
Laravel 4 setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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