Issues (350)

app/Models/Campus.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
use Spatie\Translatable\HasTranslations;
9
10
/**
11
 * NOTE: In the current configuration, the campus with the ID of 1 represent the school itself
12
 * the campus model with the ID of 2 represents all external courses
13
 *
14
 * @mixin IdeHelperCampus
15
 */
16
class Campus extends Model
17
{
18
    use CrudTrait;
0 ignored issues
show
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by App\Models\Campus: $fakeColumns, $identifiableAttribute, $Type
Loading history...
19
    use SoftDeletes;
20
    use HasTranslations;
21
22
    public array $translatable = ['name'];
23
24
    public $timestamps = false;
25
26
    protected $fillable = ['name'];
27
}
28