cleaning day
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class OrderDetail extends Model
|
||||
{
|
||||
@@ -10,12 +11,12 @@ class OrderDetail extends Model
|
||||
|
||||
protected $table = 'shop_order_details';
|
||||
|
||||
public function order()
|
||||
public function order(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Order::class);
|
||||
}
|
||||
|
||||
public function offer()
|
||||
public function offer(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Offer::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user