Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -8,6 +8,7 @@
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
use Illuminate\Validation\ValidationException;
use Throwable;
class CreateStorageProvider
{
@ -35,7 +36,7 @@ public function create(User $user, Project $project, array $input): StorageProvi
'provider' => __("Couldn't connect to the provider"),
]);
}
} catch (\Throwable $e) {
} catch (Throwable $e) {
throw ValidationException::withMessages([
'provider' => $e->getMessage(),
]);
@ -55,7 +56,7 @@ public static function rules(array $input): array
$rules = [
'provider' => [
'required',
Rule::in(config('core.storage_providers')),
Rule::in(array_keys(config('storage-provider.providers'))),
],
'name' => [
'required',