Add relations in tables, add saving states for datatables, minor fixes
This commit is contained in:
@@ -15,6 +15,11 @@ class Specie extends Model
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'botanic_species';
|
||||
|
||||
public function tags()
|
||||
{
|
||||
return $this->morphToMany('App\Models\Shop\Tag', 'taggable');
|
||||
}
|
||||
|
||||
public function Genre()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Botanic\Genre');
|
||||
|
||||
Reference in New Issue
Block a user