Level::skill()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Models;
4
5
use App\Models\Skills\Skill;
6
use Backpack\CRUD\app\Models\Traits\CrudTrait;
7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Database\Eloquent\SoftDeletes;
9
10
/**
11
 * @mixin IdeHelperLevel
12
 */
13
class Level extends Model
14
{
15
    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\Level: $fakeColumns, $identifiableAttribute, $Type
Loading history...
16
    use SoftDeletes;
17
18
    public $timestamps = false;
19
20
    protected $guarded = ['id'];
21
22
    /*
23
    |--------------------------------------------------------------------------
24
    | FUNCTIONS
25
    |--------------------------------------------------------------------------
26
    */
27
28
    /*
29
    |--------------------------------------------------------------------------
30
    | RELATIONS
31
    |--------------------------------------------------------------------------
32
    */
33
34
    public function skill()
35
    {
36
        return $this->hasMany(Skill::class);
37
    }
38
39
    /*
40
    |--------------------------------------------------------------------------
41
    | SCOPES
42
    |--------------------------------------------------------------------------
43
    */
44
45
    /*
46
    |--------------------------------------------------------------------------
47
    | ACCESORS
48
    |--------------------------------------------------------------------------
49
    */
50
51
    /*
52
    |--------------------------------------------------------------------------
53
    | MUTATORS
54
    |--------------------------------------------------------------------------
55
    */
56
}
57