davide.cucurnia@vola.it
2024-02-09 3c53556bb0160406221ceb9a0563d8b86bbf4df2
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 Msisdn extends Model
9 {
10
11     /**
12      * The attributes that are mass assignable.
13      *
14      * @var array<int, string>
15      */
16     protected $fillable = [
17         'VodafoneUser',
18         'MSISDN',
19         'CardType',
20         'IdPiano',
21         'VodafoneOne',
22         'TopClub',
23         'SeniorityCluster',
24     ];
25
26     public function user()
27     {
28         return $this->belongsTo('App\Models\VodafoneUser', 'VodafoneUser', 'id');
29     }
30
2f9a34 31     public function products()
D 32     {
33         return $this->hasMany('App\Models\Products','LinkedMSISDN', 'id');
34     }
35
89a71b 36 }