comparison app/Models/User.php @ 0:9d7dcd54c677

Initial Commit and package setup
author luka
date Sat, 23 Aug 2025 22:20:51 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9d7dcd54c677
1 <?php
2
3 namespace App\Models;
4
5 // use Illuminate\Contracts\Auth\MustVerifyEmail;
6 use Illuminate\Database\Eloquent\Factories\HasFactory;
7 use Illuminate\Foundation\Auth\User as Authenticatable;
8 use Illuminate\Notifications\Notifiable;
9
10 class User extends Authenticatable
11 {
12 /** @use HasFactory<\Database\Factories\UserFactory> */
13 use HasFactory, Notifiable;
14
15 /**
16 * The attributes that are mass assignable.
17 *
18 * @var list<string>
19 */
20 protected $fillable = [
21 'name',
22 'email',
23 'password',
24 ];
25
26 /**
27 * The attributes that should be hidden for serialization.
28 *
29 * @var list<string>
30 */
31 protected $hidden = [
32 'password',
33 'remember_token',
34 ];
35
36 /**
37 * Get the attributes that should be cast.
38 *
39 * @return array<string, string>
40 */
41 protected function casts(): array
42 {
43 return [
44 'email_verified_at' => 'datetime',
45 'password' => 'hashed',
46 ];
47 }
48 }