for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Finder\Models;
use Pedreiro\Models\Base;
use Fabrica\Models\Code\Issue;
use Fabrica\Models\Code\Field;
use Fabrica\Models\Code\Project;
class Reference extends Base
{
protected $organizationPerspective = false;
protected $table = 'references';
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'code',
'name',
];
* Get all of the issues that are assigned this reference.
public function issues()
return $this->morphedByMany(Issue::class)->withPivot('identify');
}
* Get all of the fields that are assigned this reference.
public function fields()
return $this->morphedByMany(Field::class)->withPivot('identify');
* Get all of the projects that are assigned this reference.
public function projects()
return $this->morphedByMany(Project::class)->withPivot('identify');