validate([ 'orderId' => ['required', 'string', 'max:50', 'exists:online_payment_histories,orderId'], ]); return view('welcome'); } }