User Order step1

This commit is contained in:
Kevin Adametz 2020-08-07 16:02:03 +02:00
parent eb55b01b0d
commit a5db985ae8
90 changed files with 6439 additions and 421 deletions

View file

@ -67,6 +67,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShoppingOrder whereUserDeletedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\ShoppingOrder withTrashed()
* @method static \Illuminate\Database\Query\Builder|\App\Models\ShoppingOrder withoutTrashed()
* @property-read \App\Models\ShippingCountry $shipping_country
*/
class ShoppingOrder extends Model
{
@ -90,6 +91,7 @@ class ShoppingOrder extends Model
'weight',
'paid',
'txaction',
'wp_invoice_path',
'mode',
];
@ -101,7 +103,7 @@ class ShoppingOrder extends Model
public function country()
{
return $this->belongsTo('App\Models\Sh','country_id');
return $this->belongsTo('App\Models\ShippingCountry','country_id');
}
public function shipping_country()