diff --git a/app/Http/Requests/SystemRegister.php b/app/Http/Requests/SystemRegister.php index ca8af41..20d1007 100644 --- a/app/Http/Requests/SystemRegister.php +++ b/app/Http/Requests/SystemRegister.php @@ -58,7 +58,7 @@ class SystemRegister extends FormRequest $so = $this->route('o'); - if ((! $so->exists) && ($request->action === 'create')) + if (((! $so) || (! $so->exists)) && ($request->action === 'create')) return [ 'name' => 'required|min:3', ];