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.
1 parent 3f1cddd commit e2fb3c1Copy full SHA for e2fb3c1
src/app/Http/Controllers/CrudController.php
@@ -96,7 +96,11 @@ protected function setupDefaults()
96
protected function setupConfigurationForCurrentOperation()
97
{
98
$operationName = $this->crud->getCurrentOperation();
99
- $setupClassName = 'setup'.Str::studly($operationName ?? '').'Operation';
+ if (!$operationName) {
100
+ return;
101
+ }
102
+
103
+ $setupClassName = 'setup'.Str::studly($operationName).'Operation';
104
105
/*
106
* FIRST, run all Operation Closures for this operation.
0 commit comments