app/Http/Controllers/Auth/AuthController.php 1 location
|
@@ 66-73 (lines=8) @@
|
| 63 |
|
* @param array $data |
| 64 |
|
* @return User |
| 65 |
|
*/ |
| 66 |
|
protected function create(array $data) |
| 67 |
|
{ |
| 68 |
|
return User::create([ |
| 69 |
|
'name' => $data['name'], |
| 70 |
|
'email' => $data['email'], |
| 71 |
|
'password' => bcrypt($data['password']), |
| 72 |
|
]); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
public function prePostLogin(Request $request) { |
| 76 |
|
|
app/Http/Controllers/Auth/RegisterController.php 1 location
|
@@ 63-70 (lines=8) @@
|
| 60 |
|
* @param array $data |
| 61 |
|
* @return User |
| 62 |
|
*/ |
| 63 |
|
protected function create(array $data) |
| 64 |
|
{ |
| 65 |
|
return User::create([ |
| 66 |
|
'name' => $data['name'], |
| 67 |
|
'email' => $data['email'], |
| 68 |
|
'password' => bcrypt($data['password']), |
| 69 |
|
]); |
| 70 |
|
} |
| 71 |
|
} |