Download src/app/Http/Requests/UserCreditRequest.php from pnacorp/xsender: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Requests/UserCreditRequest.php
- Command line
-
hf download hf://pnacorp/xsender/src/app/Http/Requests/UserCreditRequest.php
-
curl -L -o UserCreditRequest.php https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Requests/UserCreditRequest.php
807 Bytes
| namespace App\Http\Requests; | |
| use App\Enums\StatusEnum; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class UserCreditRequest extends FormRequest | |
| { | |
| /** | |
| * Determine if the user is authorized to make this request. | |
| * | |
| * @return bool | |
| */ | |
| public function authorize(): bool | |
| { | |
| return true; | |
| } | |
| /** | |
| * Get the validation rules that apply to the request. | |
| * | |
| * @return array | |
| */ | |
| public function rules(): array | |
| { | |
| return [ | |
| 'type' => ['required', 'in:' . StatusEnum::TRUE->status() . ',' . StatusEnum::FALSE->status()], | |
| 'sms_credit' => 'nullable|integer|gt:0', | |
| 'email_credit' => 'nullable|integer|gt:0', | |
| 'whatsapp_credit' => 'nullable|integer|gt:0', | |
| ]; | |
| } | |
| } | |