Attributes

This commit is contained in:
Ludovic CANDELLIER
2020-05-05 19:07:11 +02:00
parent d7917309ee
commit d0e3bb6251
11 changed files with 144 additions and 45 deletions

View File

@@ -6,13 +6,13 @@ use Illuminate\Database\Eloquent\Relations\Pivot;
class ArticleAttribute extends Pivot
{
public function Article()
{
return $this->belongsTo('App\Models\Shop\Article');
}
public function article()
{
return $this->belongsTo('App\Models\Shop\Article');
}
public function Attribute()
{
return $this->belongsTo('App\Models\Shop\ArticleAttribute');
}
public function value()
{
return $this->belongsTo('App\Models\Shop\ArticleAttribute');
}
}