Files
SkinbaseNova/app/Http/Requests/Groups/StoreGroupJoinRequestRequest.php

26 lines
642 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Requests\Groups;
use Illuminate\Foundation\Http\FormRequest;
class StoreGroupJoinRequestRequest extends FormRequest
{
public function authorize(): bool
{
return $this->user() !== null;
}
public function rules(): array
{
return [
'message' => ['nullable', 'string', 'max:2000'],
'portfolio_url' => ['nullable', 'url', 'max:2048'],
'desired_role' => ['nullable', 'string', 'max:32'],
'skills_json' => ['nullable', 'array', 'max:12'],
'skills_json.*' => ['string', 'max:80'],
];
}
}