Recent changes
This commit is contained in:
0
app/Http/Requests/Add2FASecretRequest.php
Normal file → Executable file
0
app/Http/Requests/Add2FASecretRequest.php
Normal file → Executable file
0
app/Http/Requests/BanUserRequest.php
Normal file → Executable file
0
app/Http/Requests/BanUserRequest.php
Normal file → Executable file
0
app/Http/Requests/ChangeEmailRequest.php
Normal file → Executable file
0
app/Http/Requests/ChangeEmailRequest.php
Normal file → Executable file
0
app/Http/Requests/ChangePasswordRequest.php
Normal file → Executable file
0
app/Http/Requests/ChangePasswordRequest.php
Normal file → Executable file
0
app/Http/Requests/DeleteUserRequest.php
Normal file → Executable file
0
app/Http/Requests/DeleteUserRequest.php
Normal file → Executable file
0
app/Http/Requests/EditTeamRequest.php
Normal file → Executable file
0
app/Http/Requests/EditTeamRequest.php
Normal file → Executable file
0
app/Http/Requests/FlushSessionsRequest.php
Normal file → Executable file
0
app/Http/Requests/FlushSessionsRequest.php
Normal file → Executable file
0
app/Http/Requests/NewCommentRequest.php
Normal file → Executable file
0
app/Http/Requests/NewCommentRequest.php
Normal file → Executable file
0
app/Http/Requests/NewTeamRequest.php
Normal file → Executable file
0
app/Http/Requests/NewTeamRequest.php
Normal file → Executable file
0
app/Http/Requests/ProfileSave.php
Normal file → Executable file
0
app/Http/Requests/ProfileSave.php
Normal file → Executable file
0
app/Http/Requests/Remove2FASecretRequest.php
Normal file → Executable file
0
app/Http/Requests/Remove2FASecretRequest.php
Normal file → Executable file
0
app/Http/Requests/SaveNotesRequest.php
Normal file → Executable file
0
app/Http/Requests/SaveNotesRequest.php
Normal file → Executable file
0
app/Http/Requests/SearchPlayerRequest.php
Normal file → Executable file
0
app/Http/Requests/SearchPlayerRequest.php
Normal file → Executable file
0
app/Http/Requests/SendInviteRequest.php
Normal file → Executable file
0
app/Http/Requests/SendInviteRequest.php
Normal file → Executable file
0
app/Http/Requests/UpdateUserRequest.php
Normal file → Executable file
0
app/Http/Requests/UpdateUserRequest.php
Normal file → Executable file
32
app/Http/Requests/UploadFileRequest.php
Normal file
32
app/Http/Requests/UploadFileRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UploadFileRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'caption' => 'required|string|max:100',
|
||||
'description' => 'required|string|max:800',
|
||||
'file' => 'required|file|mimes:jpeg,jpg,png,bmp,tiff,docx,doc,odt,ott,xls,xlsx,ods,ots,gif,pdf,mp3,mp4,pptx,ppt,odp,ppsx,pub,psd,svg'
|
||||
];
|
||||
}
|
||||
}
|
0
app/Http/Requests/UserDeleteRequest.php
Normal file → Executable file
0
app/Http/Requests/UserDeleteRequest.php
Normal file → Executable file
0
app/Http/Requests/VacancyEditRequest.php
Normal file → Executable file
0
app/Http/Requests/VacancyEditRequest.php
Normal file → Executable file
0
app/Http/Requests/VacancyRequest.php
Normal file → Executable file
0
app/Http/Requests/VacancyRequest.php
Normal file → Executable file
0
app/Http/Requests/VoteRequest.php
Normal file → Executable file
0
app/Http/Requests/VoteRequest.php
Normal file → Executable file
Reference in New Issue
Block a user