create new column for database and improve the controller

This commit is contained in:
2025-04-14 15:40:10 +03:30
parent a3600c68fa
commit 2e0b49df45
3 changed files with 87 additions and 34 deletions

View File

@@ -22,6 +22,9 @@ class UpdateRequest extends FormRequest
public function rules(): array
{
return [
'province_id' => 'required|exists:provinces,id',
'city_id' => 'required|exists:cities,id',
'name' => 'required|string|max:255',
'status' => 'integer|in:0,1',
'type' => 'integer|in:1,2,3',
'team_num' => 'numeric',