Download src/app/Http/Requests/Admin/WhatsappCloudApiRequest.php from pnacorp/xsender: direct link, hf CLI and curl.
- Browser
- Download file 825 Bytes
-
https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Requests/Admin/WhatsappCloudApiRequest.php
- Command line
-
hf download hf://pnacorp/xsender/src/app/Http/Requests/Admin/WhatsappCloudApiRequest.php
-
curl -L -o WhatsappCloudApiRequest.php https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Requests/Admin/WhatsappCloudApiRequest.php
825 Bytes
| namespace App\Http\Requests\Admin; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class WhatsappCloudApiRequest 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() | |
| { | |
| $rules = [ | |
| "name" => "required", | |
| ]; | |
| $required_credentials = config("setting.whatsapp_business_credentials.required"); | |
| foreach($required_credentials as $required_cred_key => $required_cred_value) { | |
| $rules['credentials.' . $required_cred_key] = 'required'; | |
| } | |
| return $rules; | |
| } | |
| } | |