1 | <?php |
||
10 | class AuthController extends Controller |
||
11 | { |
||
12 | /* |
||
13 | |-------------------------------------------------------------------------- |
||
14 | | Registration & Login Controller |
||
15 | |-------------------------------------------------------------------------- |
||
16 | | |
||
17 | | This controller handles the registration of new users, as well as the |
||
18 | | authentication of existing users. By default, this controller uses |
||
19 | | a simple trait to add these behaviors. Why don't you explore it? |
||
20 | | |
||
21 | */ |
||
22 | |||
23 | use AuthenticatesAndRegistersUsers; |
||
24 | |||
25 | /** |
||
26 | * Create a new authentication controller instance. |
||
27 | */ |
||
28 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * Get a validator for an incoming registration request. |
||
35 | * |
||
36 | * @param array $data |
||
37 | * |
||
38 | * @return \Illuminate\Contracts\Validation\Validator |
||
39 | */ |
||
40 | protected function validator(array $data) |
||
48 | |||
49 | /** |
||
50 | * Create a new user instance after a valid registration. |
||
51 | * |
||
52 | * @param array $data |
||
53 | * |
||
54 | * @return User |
||
55 | */ |
||
56 | protected function create(array $data) |
||
64 | } |
||
65 |