From d9d363255e6d8ba91736dd89aefce097fe065c64 Mon Sep 17 00:00:00 2001 From: bilawal shaikh <46257281+bilawalshaikh@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:46:00 +0500 Subject: [PATCH] Update StoreBuildingRequest.php --- app/Http/Requests/StoreBuildingRequest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Http/Requests/StoreBuildingRequest.php b/app/Http/Requests/StoreBuildingRequest.php index fbd8c064..93057430 100644 --- a/app/Http/Requests/StoreBuildingRequest.php +++ b/app/Http/Requests/StoreBuildingRequest.php @@ -19,6 +19,18 @@ public function authorize() return true; } + /** + * Get the error messages for the defined validation rules. + * + * @return array + */ + public function messages(): array + { + return [ + 'name.required' => 'Please enter the name', + ]; + } + /** * Get the validation rules that apply to the request. *