Files
opensem/app/Models/Shop/ArticleAttribute.php
Ludovic CANDELLIER 516ec2232e [WIP] Add some classes
2020-04-25 01:06:04 +02:00

18 lines
342 B
PHP

<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Relations\Pivot;
class ArticleAttribute extends Pivot
{
public function Article()
{
return $this->belongsTo('App\Models\Shop\Article');
}
public function Attribute()
{
return $this->belongsTo('App\Models\Shop\ArticleAttribute');
}
}