Skip to content

Commit

Permalink
Merge branch 'master' of github.com:laracasts/Laravel-5-Generators-Ex…
Browse files Browse the repository at this point in the history
…tended
  • Loading branch information
JeffreyWay committed Feb 26, 2015
2 parents 7d977a2 + c7838b8 commit 582022b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ class CreateUsersTable extends Migration {
public function up()
{
Schema::create('users', function(Blueprint $table) {
$table->increments('id');
$table->string('username');
$table->string('email')->unique();
$table->timestamps();
});
$table->increments('id');
$table->string('username');
$table->string('email')->unique();
$table->timestamps();
});
}

/**
Expand Down Expand Up @@ -132,8 +132,8 @@ class RemoveUserIdFromPostsTable extends Migration {
public function up()
{
Schema::table('posts', function(Blueprint $table) {
$table->dropColumn('user_id');
});
$table->dropColumn('user_id');
});
}

/**
Expand All @@ -144,8 +144,8 @@ class RemoveUserIdFromPostsTable extends Migration {
public function down()
{
Schema::table('posts', function(Blueprint $table) {
$table->integer('user_id');
});
$table->integer('user_id');
});
}

}
Expand All @@ -154,7 +154,7 @@ class RemoveUserIdFromPostsTable extends Migration {
Here's a few other examples of commands that you might write:

- `php artisan make:migration:schema create_posts_table`
- `php artisan make:migration:schema create_posts_table --schema="title:string, body:text, excerpt:string:nullable`
- `php artisan make:migration:schema create_posts_table --schema="title:string, body:text, excerpt:string:nullable"`
- `php artisan make:migration:schema remove_excerpt_from_posts_table --schema="excerpt:string:nullable"`


Expand Down Expand Up @@ -234,10 +234,10 @@ use Laracasts\TestDummy\Factory as TestDummy;

class PostsTableSeeder extends Seeder {

public function run()
{
public function run()
{
// TestDummy::times(20)->create('App\Post');
}
}

}
```

0 comments on commit 582022b

Please sign in to comment.