%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/app/Http/Requests/User/
Upload File :
Create Path :
Current File : /var/www/html/news/app/Http/Requests/User/UserStoreRequest.php

<?php

namespace App\Http\Requests\User;

use App\Http\Requests\BaseRequest;

class UserStoreRequest extends BaseRequest
{
    /**
     * 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'      => 'required|string',
            'surname'   => 'required|string',
            'email'     => 'required|email|unique:users,email,' . $this->id,
            'password'  => 'required|string|confirmed',
            'birthdate' => 'required|date'
        ];
    }

    public function getSanitationRules()
    {
        return [];
    }

}

Zerion Mini Shell 1.0