@@ -72,7 +72,7 @@ |
||
| 72 | 72 | return response()->json([ |
| 73 | 73 | 'csrfToken' => csrf_token(), |
| 74 | 74 | ]); |
| 75 | - }catch(\Exception $e) { |
|
| 75 | + } catch(\Exception $e) { |
|
| 76 | 76 | throw $e; |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | // send verification email; |
| 73 | 73 | |
| 74 | 74 | return $user; |
| 75 | - }catch(\Exception $e){ |
|
| 75 | + } catch(\Exception $e){ |
|
| 76 | 76 | DB::rollBack(); |
| 77 | 77 | throw $e; |
| 78 | 78 | } |
@@ -75,13 +75,13 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | |
| 78 | - /** |
|
| 79 | - * Creates a token and send email.- api |
|
| 80 | - * |
|
| 81 | - * @param \App\Models\User $user |
|
| 82 | - * |
|
| 83 | - * @return bool or void |
|
| 84 | - */ |
|
| 78 | + /** |
|
| 79 | + * Creates a token and send email.- api |
|
| 80 | + * |
|
| 81 | + * @param \App\Models\User $user |
|
| 82 | + * |
|
| 83 | + * @return bool or void |
|
| 84 | + */ |
|
| 85 | 85 | public function createTokenAndSendEmailApi(User $user) |
| 86 | 86 | { |
| 87 | 87 | $activations = Activation::where('user_id', $user->id) |