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
![]() |
|||
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 |