Skip to content

Commit 7fbd4e9

Browse files
jessarcherinnocenzi
andcommitted
Support models in unconventional locations
Co-authored-by: Enzo Innocenzi <enzo@innocenzi.dev>
1 parent 084aa73 commit 7fbd4e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Foundation/Console/ShowModelCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ protected function attributeIsHidden($attribute, $model)
416416
*/
417417
protected function qualifyModel(string $model)
418418
{
419+
if (class_exists($model)) {
420+
return $model;
421+
}
422+
419423
$model = ltrim($model, '\\/');
420424

421425
$model = str_replace('/', '\\', $model);

0 commit comments

Comments
 (0)