Skip to content

Commit

Permalink
Update StoreBuildingRequest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bilawalshaikh authored Dec 12, 2023
1 parent ffb6555 commit d9d3632
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/Http/Requests/StoreBuildingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public function authorize()
return true;
}

/**
* Get the error messages for the defined validation rules.
*
* @return array<string, string>
*/
public function messages(): array
{
return [
'name.required' => 'Please enter the name',
];
}

/**
* Get the validation rules that apply to the request.
*
Expand Down

0 comments on commit d9d3632

Please sign in to comment.