Skip to content

Commit

Permalink
Improve ide-helper hook
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Aug 20, 2023
1 parent ebb8aae commit 04cdf25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IdeHelper/DeepRelationsHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface;
use Exception;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
Expand All @@ -13,6 +12,7 @@
use Staudenmeir\EloquentHasManyDeep\HasManyDeep;
use Staudenmeir\EloquentHasManyDeep\HasOneDeep;
use Staudenmeir\EloquentHasManyDeep\HasRelationships;
use Throwable;

class DeepRelationsHook implements ModelHookInterface
{
Expand All @@ -33,7 +33,7 @@ public function run(ModelsCommand $command, Model $model): void

try {
$relation = $method->invoke($model);
} catch (Exception) {
} catch (Throwable) {
continue;
}

Expand Down

0 comments on commit 04cdf25

Please sign in to comment.