Skip to content

Commit

Permalink
Merge pull request #49 from he4rt/fix/add-nullable-to-github-and-link…
Browse files Browse the repository at this point in the history
…edin

fix: add nullable to git and linkedin
  • Loading branch information
DanielHe4rt authored Feb 9, 2023
2 parents 5fb6d1a + 1181c31 commit b2d5816
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Http/Controllers/Users/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
use Knuckles\Scribe\Extracting\Strategies\Responses\UseResponseFileTag;

class UsersController extends Controller
{
Expand Down Expand Up @@ -73,9 +72,9 @@ public function putUser(Request $request, string $discordId, UpdateUser $action)
'email' => 'email',
'name' => 'string',
'nickname' => 'string',
'git' => ['string', 'starts_with:github.com,https://github.com'],
'git' => ['nullable', 'string', 'starts_with:github.com,https://github.com'],
'about' => 'string',
'linkedin' => ['string', 'starts_with:linkedin.com,https://linkedin.com'],
'linkedin' => ['nullable', 'string', 'starts_with:linkedin.com,https://linkedin.com'],
'is_donator' => 'bool',
'uf' => 'size:2',
'birthday' => 'date_format:Y-m-d',
Expand Down

0 comments on commit b2d5816

Please sign in to comment.