Issues (350)

app/Models/Level.php (1 issue)

Severity
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
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