Skip to content

Commit a299816

Browse files
committed
Move Observers below Relations in command output
1 parent bb0f788 commit a299816

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Illuminate/Foundation/Console/ShowModelCommand.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -352,17 +352,6 @@ protected function displayCli($class, $database, $table, $attributes, $relations
352352

353353
$this->newLine();
354354

355-
$this->components->twoColumnDetail('<fg=green;options=bold>Eloquent Observers</>');
356-
357-
if ($observers->count()) {
358-
foreach ($observers as $observer) {
359-
$this->components->twoColumnDetail(
360-
sprintf('%s', $observer['event']), implode(', ', $observer['observer']));
361-
}
362-
}
363-
364-
$this->newLine();
365-
366355
$this->components->twoColumnDetail('<fg=green;options=bold>Relations</>');
367356

368357
foreach ($relations as $relation) {
@@ -373,6 +362,17 @@ protected function displayCli($class, $database, $table, $attributes, $relations
373362
}
374363

375364
$this->newLine();
365+
366+
$this->components->twoColumnDetail('<fg=green;options=bold>Observers</>');
367+
368+
if ($observers->count()) {
369+
foreach ($observers as $observer) {
370+
$this->components->twoColumnDetail(
371+
sprintf('%s', $observer['event']), implode(', ', $observer['observer']));
372+
}
373+
}
374+
375+
$this->newLine();
376376
}
377377

378378
/**

0 commit comments

Comments
 (0)