CompanySettingRequest.php 997 B

12345678910111213141516171819202122232425
  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. 'contact_email' => 'sometimes|nullable|email|max:255',
  18. 'contact_phone' => 'sometimes|nullable|string|max:50',
  19. 'contact_location' => 'sometimes|nullable|string|max:255',
  20. ];
  21. }
  22. }