app/Http/Requests/storeUserRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'email'=>'required|unique:users,email',
            'password'=>'required|min:8',
            'name'=>'required',
        ];
    }
public function rules ( ) { return [ 'email' => 'required|unique:users,email' , 'password' => 'required|min:8' , 'name' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// those are the rules an email must be unique in the email table