lagdo /
tontine
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Siak\Tontine\Model; |
||
| 4 | |||
| 5 | class Profile extends Base |
||
| 6 | { |
||
| 7 | use Traits\HasProperty; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 8 | |||
| 9 | /** |
||
| 10 | * Indicates if the model should be timestamped. |
||
| 11 | * |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | public $timestamps = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The attributes that are mass assignable. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $fillable = [ |
||
| 22 | 'address', |
||
| 23 | 'city', |
||
| 24 | 'country_code', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | public function user() |
||
| 28 | { |
||
| 29 | return $this->belongsTo(User::class); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |