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
introduced
by
![]() |
|||
19 | use SoftDeletes; |
||
20 | use HasTranslations; |
||
21 | |||
22 | public array $translatable = ['name']; |
||
23 | |||
24 | public $timestamps = false; |
||
25 | |||
26 | protected $fillable = ['name']; |
||
27 | } |
||
28 |