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

27 lines
636 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProductServiceRequest extends FormRequest
{
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;
}
}