Upload beautify
This commit is contained in:
22
app/Http/Requests/Uploads/UploadInitRequest.php
Normal file
22
app/Http/Requests/Uploads/UploadInitRequest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Requests\Uploads;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
final class UploadInitRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return (bool) $this->user();
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'client' => 'nullable|string|max:64',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user