Sindbad~EG File Manager

Current Path : /proc/self/cwd/app/Http/Requests/
Upload File :
Current File : //proc/self/cwd/app/Http/Requests/CrupdateShareableLinkRequest.php

<?php

namespace App\Http\Requests;

use Common\Core\BaseFormRequest;

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

    public function messages()
    {
        return [
            'expiresAt.date' => 'This is not a valid date.',
        ];
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'allowDownload' => 'boolean',
            'allowEdit' => 'boolean',
            'expiresAt' => 'nullable|date',
            'password' => 'nullable|string'
        ];
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists