mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
41 lines
773 B
PHP
41 lines
773 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
/**
|
|
* Class Address
|
|
* @package App\Models
|
|
* @version August 4, 2020, 4:36 am
|
|
*
|
|
* @property \App\Models\Company company
|
|
* @property string street_one
|
|
* @property string street_two
|
|
* @property string city
|
|
* @property string state
|
|
* @property string post_code
|
|
* @property string country
|
|
*/
|
|
class Address extends AbstractModel
|
|
{
|
|
|
|
use SoftDeletes;
|
|
|
|
|
|
protected $table = 'addresses';
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
**/
|
|
public function company(): HasOne
|
|
{
|
|
return $this->hasOne(Company::class, 'company_id', 'id');
|
|
}
|
|
|
|
}
|