for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestSetup\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
use LaravelFreelancerNL\Aranguent\Eloquent\Model;
class Tag extends Model
{
use SoftDeletes;
protected $table = 'tags';
protected $fillable = [
'id',
'en',
'de',
];
/**
* Get all of the characters that are assigned this tag.
*/
public function characters()
return $this->morphedByMany(Character::class, 'taggable')
->using(Taggable::class);
}
* Get all of the locations that are assigned this tag.
public function locations()
return $this->morphedByMany(Location::class, 'taggable')
public function houses()
return $this->morphedByMany(House::class, 'taggable')