26 lines
488 B
PHP
26 lines
488 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ShoppingInstance extends Model
|
|
{
|
|
protected $table = 'shopping_instances';
|
|
|
|
|
|
protected $fillable = [
|
|
'identifier', 'user_shop_id', 'subdomain', 'country_id'
|
|
];
|
|
|
|
public function user_shop()
|
|
{
|
|
return $this->belongsTo('App\Models\UserShop', 'user_shop_id');
|
|
}
|
|
|
|
public function country()
|
|
{
|
|
return $this->belongsTo('App\Models\Country', 'country_id');
|
|
}
|
|
|
|
}
|