feat: ✨ Added billing_period to validation
This commit is contained in:
parent
b726326e99
commit
87bca5c52b
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,7 @@ class ProductController extends Controller
|
|||
"nodes.*" => "required|exists:nodes,id",
|
||||
"eggs.*" => "required|exists:eggs,id",
|
||||
"disabled" => "nullable",
|
||||
"billing_period" => "required|in:hourly,daily,monthly",
|
||||
]);
|
||||
|
||||
$disabled = !is_null($request->input('disabled'));
|
||||
|
@ -139,6 +140,7 @@ class ProductController extends Controller
|
|||
"nodes.*" => "required|exists:nodes,id",
|
||||
"eggs.*" => "required|exists:eggs,id",
|
||||
"disabled" => "nullable",
|
||||
"billing_period" => "required|in:hourly,daily,monthly",
|
||||
]);
|
||||
|
||||
$disabled = !is_null($request->input('disabled'));
|
||||
|
|
Loading…
Add table
Reference in a new issue