app/Http/Requests/BuyTicketsRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'checkout_name'=>'required|max:255',
            'checkout_last_name'=>'required|max:255',
            'checkout_phone'=>'required|max:15',
            'checkout_address'=>'required|max:255',
            'checkout_city'=>'required|max:50',
            'checkout_state'=>'required|max:3',
            'checkout_zip'=>'required|max:10',
            'checkout_quantity'=>'required|integer|min:1'
        ];
    }
public function rules ( ) { return [ 'checkout_name' => 'required|max:255' , 'checkout_last_name' => 'required|max:255' , 'checkout_phone' => 'required|max:15' , 'checkout_address' => 'required|max:255' , 'checkout_city' => 'required|max:50' , 'checkout_state' => 'required|max:3' , 'checkout_zip' => 'required|max:10' , 'checkout_quantity' => 'required|integer|min:1' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .