<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Controllers\Auth;use App\User;use App\Http\Controllers\Controller;use Illuminate\Support\Facades\Hash;use Illuminate\Support\Facades\Validator;use Illuminate\Foundation\Auth\RegistersUsers;class RegisterController extends Controller{use RegistersUsers;protected $redirectTo='/home';public function __construct(){$this->middleware('guest');}protected function validator(array $data){return Validator::make($data,['name'=>'required|string|max:255','email'=>'required|string|email|max:255|unique:users','password'=>'required|string|min:6|confirmed',]);}protected function create(array $data){return User::create(['name'=>$data['name'],'email'=>$data['email'],'password'=>Hash::make($data['password']),]);}}
?>