Skip to content

Commit 1dc5970

Browse files
[9.x] Replace model:show searched value with correct FQCN (#45160)
* [9.x] Replace searched value with correct FQCN * Formatting * Update ShowModelCommand.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent eb19ed8 commit 1dc5970

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Foundation/Console/ShowModelCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public function handle()
8989

9090
try {
9191
$model = $this->laravel->make($class);
92+
93+
$class = get_class($model);
9294
} catch (BindingResolutionException $e) {
9395
return $this->components->error($e->getMessage());
9496
}

0 commit comments

Comments
 (0)