Skip to content

Commit

Permalink
fix max statue file size
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 18, 2023
1 parent 20b8aa3 commit 56ae7fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/Http/Middleware/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function share(Request $request): array
'auth' => [
'user' => $request->user(),
],
'organization_status' => fn () => $request->user()?->organization?->status,
'locales' => fn () => [
'available' => locales(),
'current' => app()->getLocale(),
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/ProfileUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function rules(): array
return [
'name' => ['string', 'max:255'],
'email' => ['email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)],
'phone' => ['nullable','string', 'max:255'],
'phone' => ['nullable', 'string', 'max:255'],
];
}
}
2 changes: 1 addition & 1 deletion app/Http/Requests/RegistrationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function rules(): array
'ngo.name' => ['required', 'string'],
'ngo.description' => ['required', 'string', 'max:1000'],
'ngo.logo' => ['required', 'image'],
'ngo.statute' => ['required', 'file', 'mimes:pdf'],
'ngo.statute' => ['required', 'file', 'mimes:pdf','max:15240'],
'ngo.street_address' => ['required', 'string'],
'ngo.cif' => ['required', 'string', 'unique:organizations,cif', new ValidCIF],
'ngo.contact_email' => ['required', 'email'],
Expand Down

0 comments on commit 56ae7fd

Please sign in to comment.