user()?->can('tenant.update') ?? false; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'name' => ['sometimes', 'required', 'string', 'max:255'], 'slug' => ['sometimes', 'required', 'alpha_dash', 'max:100', 'unique:tenants,slug,'.$this->route('tenant')->id], 'is_active' => ['sometimes', 'boolean'], ]; } }