Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class ProjectMilestone extends Model |
||
9 | { |
||
10 | use SoftDeletes; |
||
11 | |||
12 | /* @var array $fillable The fields which are mass assignable */ |
||
13 | protected $fillable = ['title', 'user_id', 'project_id', 'completed_at']; |
||
14 | |||
15 | /* @var array $dates The fields which are mutated to carbon instances */ |
||
16 | public $dates = ['completed_at']; |
||
17 | |||
18 | /** |
||
19 | * A milestone belongs to a project |
||
20 | * |
||
21 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
22 | */ |
||
23 | public function project() |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * A milestone belongs to a user |
||
30 | * |
||
31 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
32 | */ |
||
33 | public function user() |
||
38 |