• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LeTraceurSnorkLibrary / MessSaga / 23788908627

31 Mar 2026 08:53AM UTC coverage: 0.549% (-18.1%) from 18.656%
23788908627

Pull #13

github

web-flow
Merge 03d4dba7f into b32c68b3f
Pull Request #13: infra: coverage only for unit-tests

4 of 729 relevant lines covered (0.55%)

0.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Models/User.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Models;
6

7
// use Illuminate\Contracts\Auth\MustVerifyEmail;
8
use Database\Factories\UserFactory;
9
use Illuminate\Database\Eloquent\Factories\HasFactory;
10
use Illuminate\Foundation\Auth\User as Authenticatable;
11
use Illuminate\Notifications\Notifiable;
12

13
class User extends Authenticatable
14
{
15
    /** @use HasFactory<UserFactory> */
16
    use HasFactory;
17
    use Notifiable;
18

19
    /**
20
     * The attributes that are mass assignable.
21
     *
22
     * @var list<string>
23
     */
24
    protected $fillable = [
25
        'name',
26
        'email',
27
        'password',
28
        'encryption_salt',
29
    ];
30

31
    /**
32
     * The attributes that should be hidden for serialization.
33
     *
34
     * @var list<string>
35
     */
36
    protected $hidden = [
37
        'encryption_salt',
38
        'password',
39
        'remember_token',
40
    ];
41

42
    /**
43
     * Boot the model.
44
     *
45
     * @return void
46
     */
47
    protected static function boot(): void
48
    {
49
        parent::boot();
×
50

51
        static::creating(function (User $user): void {
×
52
            if (empty($user->encryption_salt)) {
×
53
                $user->encryption_salt = base64_encode(random_bytes(32));
×
54
            }
55
        });
×
56
    }
57

58
    /**
59
     * Get the attributes that should be cast.
60
     *
61
     * @return array<string, string>
62
     */
63
    protected function casts(): array
64
    {
65
        return [
×
66
            'email_verified_at' => 'datetime',
×
67
            'password'          => 'hashed',
×
68
        ];
×
69
    }
70
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc