Upgrade to Laravel 11, begining of enabling network join functionality, removed QueryCacheable

This commit is contained in:
2024-04-26 16:18:40 +10:00
parent 6e376100a5
commit 79b180f453
16 changed files with 1086 additions and 1018 deletions

View File

@@ -36,7 +36,7 @@ class DomainController extends Controller
public function add_edit(DomainRequest $request,Domain $o)
{
if ($request->post()) {
foreach (['name','dnsdomain','active','public','homepage','notes','flatten'] as $key)
foreach (['name','dnsdomain','active','public','homepage','notes','flatten','accept_app'] as $key)
$o->{$key} = $request->post($key);
$o->save();

View File

@@ -27,6 +27,7 @@ class DomainRequest extends FormRequest
'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|boolean',
'public' => 'required|boolean',
'accept_app' => 'required|boolean',
'flatten' => 'nullable|boolean',
];
}