Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Auth;
4
 
5
use Illuminate\Auth\Notifications\VerifyEmail;
6
 
7
trait MustVerifyEmail
8
{
9
    /**
10
     * Determine if the user has verified their email address.
11
     *
12
     * @return bool
13
     */
14
    public function hasVerifiedEmail()
15
    {
16
        return ! is_null($this->email_verified_at);
17
    }
18
 
19
    /**
20
     * Mark the given user's email as verified.
21
     *
22
     * @return bool
23
     */
24
    public function markEmailAsVerified()
25
    {
26
        return $this->forceFill([
27
            'email_verified_at' => $this->freshTimestamp(),
28
        ])->save();
29
    }
30
 
31
    /**
32
     * Send the email verification notification.
33
     *
34
     * @return void
35
     */
36
    public function sendEmailVerificationNotification()
37
    {
38
        $this->notify(new VerifyEmail);
39
    }
40
 
41
    /**
42
     * Get the email address that should be used for verification.
43
     *
44
     * @return string
45
     */
46
    public function getEmailForVerification()
47
    {
48
        return $this->email;
49
    }
50
}