new deployer command
This commit is contained in:
@@ -879,10 +879,8 @@ final class SettingsManager extends Component
|
||||
return $model;
|
||||
}
|
||||
|
||||
/** @var TModel $model */
|
||||
$model = $modelClass::query()->create($data);
|
||||
|
||||
return $model;
|
||||
/** @var TModel */
|
||||
return $modelClass::query()->create($data);
|
||||
} catch (QueryException $exception) {
|
||||
throw ValidationException::withMessages([
|
||||
'settings' => 'The record could not be saved. Check the slug is unique for this section/company and try again.',
|
||||
|
||||
Reference in New Issue
Block a user