1: | <?php |
2: | |
3: | namespace Aurora\Modules\Mail\Models; |
4: | |
5: | use Aurora\System\Classes\Model; |
6: | use Aurora\Modules\Core\Models\User; |
7: | |
8: | class TrustedSender extends Model |
9: | { |
10: | protected $table = 'mail_trusted_senders'; |
11: | |
12: | protected $foreignModel = User::class; |
13: | protected $foreignModelIdColumn = 'IdUser'; // Column that refers to an external table |
14: | |
15: | /** |
16: | * The attributes that are mass assignable. |
17: | * |
18: | * @var array |
19: | */ |
20: | protected $fillable = [ |
21: | 'Id', |
22: | 'IdUser', |
23: | 'Email' |
24: | ]; |
25: | |
26: | /** |
27: | * The attributes that should be hidden for arrays. |
28: | * |
29: | * @var array |
30: | */ |
31: | protected $hidden = [ |
32: | ]; |
33: | |
34: | protected $casts = [ |
35: | ]; |
36: | |
37: | protected $attributes = [ |
38: | ]; |
39: | } |
40: |