You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/app/Http/Requests/ProductServiceRequest.php

30 lines
718 B
PHTML

3 months ago
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProductServiceRequest extends FormRequest
{
/**
* @return array<array<string>>
*/
3 months ago
public function rules(): array
{
return [
'order_product_id' => ['required', 'exists:order_products'],
'service_file_id' => ['nullable', 'exists:service_files'],
'service_type' => ['required'],
'placement' => ['required'],
'setup_amount' => ['required'],
'amount' => ['nullable'],
'amount_price' => ['nullable'],
];
}
public function authorize(): bool
{
return true;
}
}