check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'product_id' => 'required|exists:products,id', 'order_id' => 'nullable|exists:orders,id', 'status' => 'nullable|string', 'rfid' => 'nullable|string', 'factory_number' => 'nullable|string', 'manufacture_date' => 'nullable|date', 'service_life' => 'nullable|integer', 'certificate_number' => 'nullable|string', 'certificate_date' => 'nullable|date', 'certificate_issuer' => 'nullable|string', 'certificate_type' => 'nullable|string', ]; } }