Ajout du titre du produit sur l'article

This commit is contained in:
Ludovic CANDELLIER
2020-05-19 00:13:55 +02:00
parent 8c346b5b3f
commit 8cf5de7f9f
29 changed files with 304 additions and 233 deletions

View File

@@ -4,9 +4,15 @@ namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class TagFamily extends Model
class Tag extends Model
{
protected $guarded = ['id'];
protected $table = 'tagging_tag_groups';
protected $table = 'tagging_tags';
public function group()
{
return $this->hasOne('App\Models\Shop\TagGroup');
}
}

View File

@@ -4,9 +4,14 @@ namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class TagFamily extends Model
class TagGroup extends Model
{
protected $guarded = ['id'];
protected $table = 'tagging_tag_groups';
public function tags()
{
return $this->hasMany('App\Models\Shop\Tag');
}
}