<?php

namespace App\Http\Requests\Api;

class BaseShowWithPassword extends BaseShow
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'slug' => 'bail|required|string',
            'pwd'  => 'nullable|string|max:150',
        ];
    }

    public function filters()
    {
        return [
            'slug' => "trim|strip_tags|xss_clean",
            'pwd'  => "trim|strip_tags|xss_clean",
        ];
    }
}
