pai-sklep/app/Models/Address.php

21 lines
372 B
PHP
Raw Normal View History

2021-11-14 14:51:49 +01:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
2021-12-07 12:22:46 +01:00
class Address extends Model
2021-11-14 14:51:49 +01:00
{
use HasFactory;
2021-12-07 12:22:46 +01:00
protected $table = "addresses";
2021-11-14 14:51:49 +01:00
2021-12-07 12:22:46 +01:00
public function user()
{
return $this->belongsTo(User::class, "userId", "uuid");
}
2021-11-14 14:51:49 +01:00
protected $fillable = [
'address',
];
}