11<?php
22
3- namespace App \Http \Controllers \Auth ;
3+ namespace OSI \Http \Controllers \Auth ;
44
5- use App \User ;
6- use App \Http \Controllers \Controller ;
7- use Illuminate \Support \Facades \Validator ;
5+ use OSI \Http \Controllers \Controller ;
6+ use OSI \Models \User ;
87use Illuminate \Foundation \Auth \RegistersUsers ;
8+ use Illuminate \Support \Facades \Validator ;
99
1010class RegisterController extends Controller
1111{
@@ -18,7 +18,7 @@ class RegisterController extends Controller
1818 | validation and creation. By default this controller uses a trait to
1919 | provide this functionality without requiring any additional code.
2020 |
21- */
21+ */
2222
2323 use RegistersUsers;
2424
@@ -48,8 +48,8 @@ public function __construct()
4848 protected function validator (array $ data )
4949 {
5050 return Validator::make ($ data , [
51- 'name ' => 'required|string|max:255 ' ,
52- 'email ' => 'required|string|email|max:255|unique:users ' ,
51+ 'name ' => 'required|string|max:255 ' ,
52+ 'email ' => 'required|string|email|max:255|unique:users ' ,
5353 'password ' => 'required|string|min:6|confirmed ' ,
5454 ]);
5555 }
@@ -58,13 +58,13 @@ protected function validator(array $data)
5858 * Create a new user instance after a valid registration.
5959 *
6060 * @param array $data
61- * @return \App \User
61+ * @return \OSI\Models \User
6262 */
6363 protected function create (array $ data )
6464 {
6565 return User::create ([
66- 'name ' => $ data ['name ' ],
67- 'email ' => $ data ['email ' ],
66+ 'name ' => $ data ['name ' ],
67+ 'email ' => $ data ['email ' ],
6868 'password ' => bcrypt ($ data ['password ' ]),
6969 ]);
7070 }
0 commit comments