Added System, fixed something with Domain, added 403, start of some other items
This commit is contained in:
@@ -20,8 +20,8 @@ class DomainController extends Controller
|
||||
{
|
||||
if ($request->post()) {
|
||||
$request->validate([
|
||||
'name' => 'required|max:8|unique:domains,name,'.$o->id,
|
||||
'dnsdomain' => 'nullable|regex:/^(?!:\/\/)(?=.{1,255}$)((.{1,63}\.){1,127}(?![0-9]*$)[a-z0-9-]+\.?)$/i|unique:domains,dnsdomain,'.$o->id,
|
||||
'name' => 'required|max:8|unique:domains,name,'.($o->exists ? $o->id : 0),
|
||||
'dnsdomain' => 'nullable|regex:/^(?!:\/\/)(?=.{1,255}$)((.{1,63}\.){1,127}(?![0-9]*$)[a-z0-9-]+\.?)$/i|unique:domains,dnsdomain,'.($o->exists ? $o->id : NULL),
|
||||
'active' => 'required',
|
||||
'public' => 'required',
|
||||
]);
|
||||
|
Reference in New Issue
Block a user