@@ -80,5 +80,5 @@ |
||
80 | 80 | $apiKey = ApiKey::make($user->id); |
81 | 81 | $apiKey->save(); |
82 | 82 | return $apiKey->key; |
83 | - } |
|
83 | + } |
|
84 | 84 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function __construct() |
40 | 40 | { |
41 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
41 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected function create(array $data) |
66 | 66 | { |
67 | - $user = User::create([ |
|
68 | - 'name' => $data['name'], |
|
69 | - 'email' => $data['email'], |
|
70 | - 'password' => bcrypt($data['password']), |
|
67 | + $user = User::create([ |
|
68 | + 'name' => $data[ 'name' ], |
|
69 | + 'email' => $data[ 'email' ], |
|
70 | + 'password' => bcrypt($data[ 'password' ]), |
|
71 | 71 | ]); |
72 | 72 | |
73 | 73 | $user->apiKey = $this->createUserApiKey($user); |