pai-sklep/app/Models/Address.php
2021-12-07 12:22:46 +01:00

20 lines
372 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
use HasFactory;
protected $table = "addresses";
public function user()
{
return $this->belongsTo(User::class, "userId", "uuid");
}
protected $fillable = [
'address',
];
}