v7.0.0-beta.4 release

This commit is contained in:
HeuJung committed 2026-05-11 11:29:41 +09:00
1 parent 05db17887d
commit 1db039ff34
1545 files changed
+136783 -11634

No files matched your search

@@ -14,9 +14,12 @@ use Illuminate\Foundation\Http\FormRequest;
class InstallPluginRequest extends FormRequest
{
/**
* 사용자가 이 요청을 수행할 권한이 있는지 확인
* 사용자가 이 요청을 수행할 권한이 있는지 확인합니다.
*
* 권한 체크는 라우트의 permission 미들웨어에서 수행됩니다.
* 권한 체크는 라우트의 permission 미들웨어에서 수행되므로
* FormRequest 레벨은 항상 통과시킵니다.
*
* @return bool 항상 true
*/
public function authorize(): bool
{
@@ -33,6 +36,12 @@ class InstallPluginRequest extends FormRequest
$rules = [
'plugin_name' => ['required', 'string', 'max:255', new ValidExtensionIdentifier],
'vendor_mode' => ['nullable', 'string', 'in:auto,composer,bundled'],
// cascade 동반 설치 — install-preview 응답을 바탕으로 사용자가 선택한 항목
'dependencies' => ['nullable', 'array'],
'dependencies.*.type' => ['required_with:dependencies', 'string', 'in:module,plugin'],
'dependencies.*.identifier' => ['required_with:dependencies', 'string', 'max:255'],
'language_packs' => ['nullable', 'array'],
'language_packs.*' => ['string', 'max:255'],
];
// 모듈/플러그인이 validation rules를 동적으로 추가할 수 있도록 훅 제공