OwlCyberSecurity - MANAGER
Edit File: CouponAddRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CouponAddRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string> */ public function rules(): array { $rules = [ 'name' => 'required|max:255', 'description' => 'required|max:6000', 'code' => 'max:255', 'destination_url' => 'required|max:255', 'ending_date' => 'max:255|date_format:m/d/Y|nullable', 'store' => 'required|integer|min:1' ]; return $rules; } }