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', 'statement_number' => 'nullable|string', 'statement_date' => 'nullable|date', 'upd_number' => 'nullable|string', 'comment' => 'nullable|string', ]; } }