2020-11-05 17:08:32 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class OldSlug extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
public function product() {
|
2021-03-17 09:28:02 +01:00
|
|
|
return $this->belongsTo('App\Model\Product', 'product_id');
|
2020-11-05 17:08:32 +01:00
|
|
|
}
|
|
|
|
|
|
2020-11-09 11:03:13 +01:00
|
|
|
public function range() {
|
2021-03-17 09:28:02 +01:00
|
|
|
return $this->belongsTo('App\Model\Range', 'range_id');
|
2020-11-05 17:08:32 +01:00
|
|
|
}
|
|
|
|
|
}
|