CompanySettingRequest.php 1.3 KB

123456789101112131415161718192021222324252627282930
  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. 'stat2_value' => 'sometimes|nullable|string|max:50',
  14. 'stat2_label' => 'sometimes|nullable|string|max:100',
  15. 'stat3_value' => 'sometimes|nullable|string|max:50',
  16. 'stat3_label' => 'sometimes|nullable|string|max:100',
  17. 'about_vision' => 'sometimes|nullable|string|max:2000',
  18. 'about_mission' => 'sometimes|nullable|string|max:2000',
  19. 'about_values' => 'sometimes|nullable|string|max:2000',
  20. 'about_history' => 'sometimes|nullable|string|max:10000',
  21. 'contact_email' => 'sometimes|nullable|email|max:255',
  22. 'contact_phone' => 'sometimes|nullable|string|max:50',
  23. 'contact_location' => 'sometimes|nullable|string|max:255',
  24. 'guide_validity_days' => 'sometimes|integer|min:1|max:365',
  25. ];
  26. }
  27. }