for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by Reliese Model.
* Date: Thu, 12 Jul 2018 22:39:27 +0000.
*/
namespace App\Models;
* Class Reference
*
* @property int $id
* @property string $name
* @property string $email
* @property int $relationship_id
* @property int $referenceable_id
* @property string $referenceable_type
* @property string $description
* @property \Jenssegers\Date\Date $created_at
* @property \Jenssegers\Date\Date $updated_at
* @property \App\Models\Lookup\Relationship $relationship
* @property \Illuminate\Database\Eloquent\Collection $projects
* @property \Illuminate\Database\Eloquent\Collection $skill_declaractions
* @property \App\Models\Applicant|\App\Models\JobApplication $referenceable
class Reference extends BaseModel
{
protected $casts = [
'name' => 'string',
'email' => 'string',
'description' => 'string',
'relationship_id' => 'int',
];
protected $fillable = [
'name',
'email',
'relationship_id',
'description'
public function relationship()
return $this->belongsTo(\App\Models\Lookup\Relationship::class);
}
public function referenceable()
return $this->morphTo();
public function projects()
return $this->belongsToMany(\App\Models\Project::class);
public function skill_declarations()
return $this->belongsToMany(\App\Models\SkillDeclaration::class);