CompanySettingRequest.php 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class CompanySettingRequest extends FormRequest
  5. {
  6. public function rules(): array
  7. {
  8. return [
  9. 'hero_title' => 'sometimes|nullable|string|max:255',
  10. 'hero_subtitle' => 'sometimes|nullable|string|max:1000',
  11. 'stat1_value' => 'sometimes|nullable|string|max:50',
  12. 'stat1_label' => 'sometimes|nullable|string|max:100',
  13. 'stat1_icon' => 'sometimes|nullable|string|max:100',
  14. 'stat2_value' => 'sometimes|nullable|string|max:50',
  15. 'stat2_label' => 'sometimes|nullable|string|max:100',
  16. 'stat2_icon' => 'sometimes|nullable|string|max:100',
  17. 'stat3_value' => 'sometimes|nullable|string|max:50',
  18. 'stat3_label' => 'sometimes|nullable|string|max:100',
  19. 'stat3_icon' => 'sometimes|nullable|string|max:100',
  20. 'about_vision' => 'sometimes|nullable|string|max:2000',
  21. 'about_mission' => 'sometimes|nullable|string|max:2000',
  22. 'about_values' => 'sometimes|nullable|string|max:2000',
  23. 'about_history' => 'sometimes|nullable|string|max:10000',
  24. 'contact_email' => 'sometimes|nullable|email|max:255',
  25. 'contact_phone' => 'sometimes|nullable|string|max:50',
  26. 'contact_location' => 'sometimes|nullable|string|max:255',
  27. 'guide_validity_days' => 'sometimes|integer|min:1|max:365',
  28. ];
  29. }
  30. }