Scholarship::enrollments()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Models;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\SoftDeletes;
8
9
/**
10
 * @mixin IdeHelperScholarship
11
 */
12
class Scholarship extends Model
13
{
14
    use CrudTrait;
0 ignored issues
show
introduced by
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by App\Models\Scholarship: $fakeColumns, $identifiableAttribute, $Type
Loading history...
15
    use SoftDeletes;
16
17
    protected $table = 'scholarships';
18
19
    protected $guarded = ['id'];
20
21
    /*
22
    |--------------------------------------------------------------------------
23
    | FUNCTIONS
24
    |--------------------------------------------------------------------------
25
    */
26
27
    /*
28
    |--------------------------------------------------------------------------
29
    | RELATIONS
30
    |--------------------------------------------------------------------------
31
    */
32
33
    public function enrollments()
34
    {
35
        return $this->belongsToMany(Enrollment::class);
36
    }
37
38
    /*
39
    |--------------------------------------------------------------------------
40
    | SCOPES
41
    |--------------------------------------------------------------------------
42
    */
43
44
    /*
45
    |--------------------------------------------------------------------------
46
    | ACCESSORS
47
    |--------------------------------------------------------------------------
48
    */
49
50
    /*
51
    |--------------------------------------------------------------------------
52
    | MUTATORS
53
    |--------------------------------------------------------------------------
54
    */
55
}
56