check(); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'transport_id' => ['nullable', 'integer', 'exists:transports,id'], 'address_id' => ['nullable', 'integer', 'exists:addresses,id'], 'tracking_code' => ['nullable', 'string'], 'status' => ['required', 'string'], ]; } }