username === 'service_user257'&& Hash::check('S3rv1ce@123', $user->password) ); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'from_date' => 'required|date_format:Y-m-d', 'to_date' => 'required|date_format:Y-m-d', ]; } }