Issues (350)

app/Models/Room.php (1 issue)

Severity
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 IdeHelperRoom
11
 */
12
class Room extends Model
13
{
14
    use CrudTrait;
0 ignored issues
show
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by App\Models\Room: $fakeColumns, $identifiableAttribute, $Type
Loading history...
15
    use SoftDeletes;
16
17
    public $timestamps = false;
18
19
    protected $guarded = ['id'];
20
21
    /*
22
    |--------------------------------------------------------------------------
23
    | FUNCTIONS
24
    |--------------------------------------------------------------------------
25
    */
26
27
    /*
28
    |--------------------------------------------------------------------------
29
    | RELATIONS
30
    |--------------------------------------------------------------------------
31
    */
32
    public function events()
33
    {
34
        return $this->hasMany(Event::class);
35
    }
36
37
    public function campus()
38
    {
39
        return $this->belongsTo(Campus::class);
40
    }
41
42
    /*
43
    |--------------------------------------------------------------------------
44
    | SCOPES
45
    |--------------------------------------------------------------------------
46
    */
47
48
    /*
49
    |--------------------------------------------------------------------------
50
    | ACCESORS
51
    |--------------------------------------------------------------------------
52
    */
53
54
    /*
55
    |--------------------------------------------------------------------------
56
    | MUTATORS
57
    |--------------------------------------------------------------------------
58
    */
59
}
60