# fluent-booking/2.2.5/app/Http/Requests/UserRequest.php

Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution, version 2.2.5. 41 lines.

- Page: https://pluginprobe.com/plugins/fluent-booking/2.2.5/code/app/Http/Requests/UserRequest.php
- Raw: https://pluginprobe.com/plugins/fluent-booking/2.2.5/raw/app/Http/Requests/UserRequest.php
- Modified: 2024-07-16T14:25:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-booking/2.2.5/code/app/Http/Requests/UserRequest.php#L10-L20`.

```php
<?php

namespace FluentBooking\App\Http\Requests;

use FluentBooking\Framework\Foundation\RequestGuard;

class UserRequest extends RequestGuard
{
    /**
     * @return array
     */
    public function rules()
    {
        return [];
    }

    /**
     * @return array
     */
    public function messages()
    {
        return [];
    }

    /**
     * @return array
     */
    public function sanitize()
    {
        $data = $this->all();

        $data['age'] = intval($data['age']);
        
        $data['address'] = wp_kses($data['address']);
        
        $data['name'] = sanitize_text_field($data['name']);
        
        return $data;
    }
}

```
