check() && hasRole('admin'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'area_id' => 'nullable|exists:areas,id', 'name' => 'required|string', 'phone' => 'required|string', 'post' => 'nullable|string', ]; } }