Add relations in tables, add saving states for datatables, minor fixes

This commit is contained in:
Ludovic CANDELLIER
2021-09-14 23:14:03 +02:00
parent be3b6bc0a8
commit 8107078ea7
16 changed files with 255 additions and 47 deletions

View File

@@ -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');