@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function up() |
| 21 | 21 | { |
| 22 | - Schema::create(config('follow.followable_table', 'followables'), function (Blueprint $table) { |
|
| 22 | + Schema::create(config('follow.followable_table', 'followables'), function(Blueprint $table) { |
|
| 23 | 23 | $table->unsignedInteger('user_id'); |
| 24 | 24 | $table->unsignedInteger('followable_id'); |
| 25 | 25 | $table->string('followable_type')->index(); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function down() |
| 41 | 41 | { |
| 42 | - Schema::table(config('follow.followable_table', 'followables'), function ($table) { |
|
| 42 | + Schema::table(config('follow.followable_table', 'followables'), function($table) { |
|
| 43 | 43 | $table->dropForeign(config('follow.followable_table', 'followables').'_user_id_foreign'); |
| 44 | 44 | }); |
| 45 | 45 | |