| 12345678910111213141516171819202122232425 |
- <?php
- namespace App\Http\Requests;
- use Illuminate\Foundation\Http\FormRequest;
- class CompanySettingRequest extends FormRequest
- {
- public function rules(): array
- {
- return [
- 'hero_title' => 'sometimes|nullable|string|max:255',
- 'hero_subtitle' => 'sometimes|nullable|string|max:1000',
- 'stat1_value' => 'sometimes|nullable|string|max:50',
- 'stat1_label' => 'sometimes|nullable|string|max:100',
- 'stat2_value' => 'sometimes|nullable|string|max:50',
- 'stat2_label' => 'sometimes|nullable|string|max:100',
- 'stat3_value' => 'sometimes|nullable|string|max:50',
- 'stat3_label' => 'sometimes|nullable|string|max:100',
- 'contact_email' => 'sometimes|nullable|email|max:255',
- 'contact_phone' => 'sometimes|nullable|string|max:50',
- 'contact_location' => 'sometimes|nullable|string|max:255',
- ];
- }
- }
|