for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestSetup\Models;
use LaravelFreelancerNL\Aranguent\Eloquent\Model;
class House extends Model
{
protected $table = 'houses';
protected $fillable = [
'id',
'name',
'location_id',
];
/**
* Get the last known residence of the character.
*/
public function head()
return $this->belongsTo(Character::class, 'led_by');
}
* Get all of the tags for the post.
public function tags()
return $this->morphToMany(Tag::class, 'taggable')
->using(Taggable::class);