Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait MustVerifyEmail |
||
6 | { |
||
7 | /** |
||
8 | * Determine if the user has verified their email address. |
||
9 | * |
||
10 | * @return bool |
||
11 | */ |
||
12 | public function hasVerifiedEmail() |
||
13 | { |
||
14 | return ! is_null($this->email_verified_at); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Mark the given user's email as verified. |
||
19 | * |
||
20 | * @return bool |
||
21 | */ |
||
22 | public function markEmailAsVerified() |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Send the email verification notification. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function sendEmailVerificationNotification() |
||
35 | { |
||
36 | $emailTemplate = config('laravel-auth-api.email_notification'); |
||
37 | $this->notify(new $emailTemplate); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Get the email address that should be used for verification. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getEmailForVerification() |
||
48 | } |
||
49 | } |
||
50 |