@@ -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 | $userForeignKey = config('follow.users_table_foreign_key', 'user_id'); |
| 24 | 24 | $table->unsignedInteger($userForeignKey); |
| 25 | 25 | $table->unsignedInteger('followable_id'); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function down() |
| 42 | 42 | { |
| 43 | - Schema::table(config('follow.followable_table', 'followables'), function ($table) { |
|
| 43 | + Schema::table(config('follow.followable_table', 'followables'), function($table) { |
|
| 44 | 44 | $table->dropForeign(config('follow.followable_table', 'followables').'_user_id_foreign'); |
| 45 | 45 | }); |
| 46 | 46 | |