@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'name' => $data['name'], |
73 | 73 | 'email' => $data['email'], |
74 | 74 | 'password' => bcrypt($data['password']), |
75 | - 'act' => str_random(48), |
|
75 | + 'act' => str_random(48), |
|
76 | 76 | ]); |
77 | 77 | |
78 | 78 | try { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | public function verifyUser($token) { |
88 | 88 | $user = User::where('act', $token)->first(); |
89 | - if(isset($user)) { |
|
89 | + if(isset($user)) { |
|
90 | 90 | if(!$user->verified) { |
91 | 91 | $user->verified = 1; |
92 | 92 | $user->save(); |