We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d38bffc + 5720087 commit daf3c86Copy full SHA for daf3c86
src/CrudPanelManager.php
@@ -213,7 +213,8 @@ public function identifyCrudPanel(): CrudPanel
213
214
foreach ($trace as $step) {
215
if (isset($step['class']) &&
216
- is_a($step['class'], CrudControllerContract::class, true)) {
+ is_a($step['class'], CrudControllerContract::class, true) &&
217
+ ! is_a($step['class'], CrudController::class, true)) {
218
$controller = (string) $step['class'];
219
break;
220
}
@@ -228,7 +229,7 @@ public function identifyCrudPanel(): CrudPanel
228
229
$cruds = $this->getCrudPanels();
230
231
if (! empty($cruds)) {
- $crudPanel = reset($cruds);
232
+ $crudPanel = end($cruds);
233
234
return $crudPanel;
235
0 commit comments