Commit workspace changes
This commit is contained in:
26
app/Http/Requests/Groups/StoreGroupJoinRequestRequest.php
Normal file
26
app/Http/Requests/Groups/StoreGroupJoinRequestRequest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user