@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create(config('follow.relation_table', 'user_follower'), function (Blueprint $table) { |
|
| 11 | + Schema::create(config('follow.relation_table', 'user_follower'), function(Blueprint $table) { |
|
| 12 | 12 | $table->increments('id'); |
| 13 | 13 | $table->unsignedBigInteger('following_id')->index(); |
| 14 | 14 | $table->unsignedBigInteger('follower_id')->index(); |
@@ -192,8 +192,8 @@ |
||
| 192 | 192 | |
| 193 | 193 | $followed = UserFollower::where('follower_id', $this->getKey())->get(); |
| 194 | 194 | |
| 195 | - $followables->map(function ($followable) use ($followed, $resolver) { |
|
| 196 | - $resolver = $resolver ?? fn ($m) => $m; |
|
| 195 | + $followables->map(function($followable) use ($followed, $resolver) { |
|
| 196 | + $resolver = $resolver ?? fn($m) => $m; |
|
| 197 | 197 | $followable = $resolver($followable); |
| 198 | 198 | |
| 199 | 199 | if ($followable && \in_array(Followable::class, \class_uses($followable))) { |
@@ -9,11 +9,11 @@ |
||
| 9 | 9 | public function boot() |
| 10 | 10 | { |
| 11 | 11 | $this->publishes([ |
| 12 | - \dirname(__DIR__) . '/config/follow.php' => config_path('follow.php'), |
|
| 12 | + \dirname(__DIR__).'/config/follow.php' => config_path('follow.php'), |
|
| 13 | 13 | ], 'config'); |
| 14 | 14 | |
| 15 | 15 | $this->publishes([ |
| 16 | - \dirname(__DIR__) . '/migrations/' => database_path('migrations'), |
|
| 16 | + \dirname(__DIR__).'/migrations/' => database_path('migrations'), |
|
| 17 | 17 | ], 'migrations'); |
| 18 | 18 | } |
| 19 | 19 | } |