<?php
namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class UpdateDocumentsRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'max:192|required',
            'description' => 'max:500',
            'icon' => 'nullable|mimes:png,jpg,jpeg,gif',
            'link' => 'max:300',
            'document_type_id' => 'required',
            'residental_complex_id' => 'required',
        ];
    }
}
