Skip to content

Commit

Permalink
[9.x] Replace model:show searched value with correct FQCN (#45160)
Browse files Browse the repository at this point in the history
* [9.x] Replace searched value with correct FQCN

* Formatting

* Update ShowModelCommand.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
bloomlive and taylorotwell authored Dec 1, 2022
1 parent eb19ed8 commit 1dc5970
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/Console/ShowModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public function handle()

try {
$model = $this->laravel->make($class);

$class = get_class($model);
} catch (BindingResolutionException $e) {
return $this->components->error($e->getMessage());
}
Expand Down

0 comments on commit 1dc5970

Please sign in to comment.