Skip to content

Commit

Permalink
Curly bracket is not on a new line
Browse files Browse the repository at this point in the history
Reading the stub file of pivot (and according to Laravel code format) the bracket after `Schema` should be on the same line. Not very important though...
  • Loading branch information
rap2hpoutre authored Aug 28, 2017
1 parent 4e9ce5d commit 1c1fe94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ class CreatePostTagPivotTable extends Migration {
*/
public function up()
{
Schema::create('post_tag', function(Blueprint $table)
{
Schema::create('post_tag', function(Blueprint $table) {
$table->integer('post_id')->unsigned()->index();
$table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');
$table->integer('tag_id')->unsigned()->index();
Expand Down

0 comments on commit 1c1fe94

Please sign in to comment.