1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Validate each design block

This commit is contained in:
Benjamin Beganović 2023-03-31 13:20:14 +02:00
parent 7c4c39bfc4
commit 7da0c6e74b

View File

@ -33,6 +33,10 @@ class StoreDesignRequest extends Request
//'name' => 'required',
'name' => 'required|unique:designs,name,null,null,company_id,'.auth()->user()->companyId(),
'design' => 'required',
'design.header' => 'required|min:1',
'design.body' => 'required|min:1',
'design.footer' => 'required|min:1',
'design.includes' => 'required|min:1',
];
}