You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/app/TagGroup.php

24 lines
406 B

<?php
namespace App;
use Conner\Tagging\Contracts\TaggingUtility;
use Illuminate\Database\Eloquent\Model;
use Conner\Tagging\Taggable;
class TagGroup extends Model
{
use Taggable;
public $fillable = ['name'];
// public $timestamps=false;
public function tags()
{
$model = $this->taggingUtility->tagModelString();
return $this->hasMany($model, 'tag_group_id');
}
}