init
This commit is contained in:
232 files changed
+25416
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CommitBazaarReleaseRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'changelog_fa' => ['nullable', 'string', 'max:5000'],
|
||||
'changelog_en' => ['nullable', 'string', 'max:5000'],
|
||||
'developer_note' => ['nullable', 'string', 'max:5000'],
|
||||
'staged_rollout_percentage' => ['required', 'integer', 'between:1,100'],
|
||||
'auto_publish' => ['required', 'boolean'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user