Filippo Bertilotti
2024-09-20 0eae7a15216040812e567d5178fec25612195b02
commit | author | age
89a71b 1 <?php
D 2
3 namespace App\Models;
4
5 use Illuminate\Database\Eloquent\Model;
6 use Illuminate\Database\Eloquent\SoftDeletes;
7
8 class VodafoneUser extends Model
9 {
10
11     /**
12      * The attributes that are mass assignable.
13      *
14      * @var array<int, string>
15      */
2bfce6 16     protected $table = "fakesso_vodafoneusers";
FB 17
89a71b 18     protected $fillable = [
D 19         'Name',
20         'Surname',
21         'EmailAddress',
22         'ProfileIdentifier',
23         'FiscalCode',
24         'Type_ID',
25         'Custcode',
26         'EmailCSA',
27         'PIN_CSA',
28         'ID_CSA',
29         'Sex',
30         'BirthProvinceName',
31         'BirthPlace',
32         'HomeProvinceName',
33         'MicroBusiness',
34         'HomePhone',
35         'Address',
36     ];
37
38     public function sims()
39     {
7e64cc 40         return $this->hasMany(Msisdn::class,'LinkedUser', 'id');
89a71b 41     }
D 42
43 }