2021-07-15 16:08:11 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Product extends Model
|
|
|
|
|
{
|
2022-08-11 10:26:29 +02:00
|
|
|
/**
|
|
|
|
|
* Range relation
|
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
|
*/
|
2021-08-18 17:04:51 +02:00
|
|
|
public function range()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Range::class);
|
|
|
|
|
}
|
2021-07-15 16:08:11 +02:00
|
|
|
}
|