mivita/app/Models/ShoppingInstance.php
Kevin Adametz 446bc4561b checkout, register, payment,
checkout correction,
register wizard,
payment packege,
2019-03-02 00:08:11 +01:00

33 lines
625 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', 'auth_user_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');
}
//can null
public function auth_user()
{
return $this->belongsTo('App\User','auth_user_id');
}
}