You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
636 B
35 lines
636 B
|
1 week ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
|
||
|
|
class University extends Model
|
||
|
|
{
|
||
|
|
use SoftDeletes;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'name',
|
||
|
|
'province',
|
||
|
|
'city',
|
||
|
|
'latitude',
|
||
|
|
'longitude',
|
||
|
|
'address',
|
||
|
|
'remark',
|
||
|
|
'status',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'status' => 'integer',
|
||
|
|
'latitude' => 'float',
|
||
|
|
'longitude' => 'float',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function teachers(): HasMany
|
||
|
|
{
|
||
|
|
return $this->hasMany(Teacher::class);
|
||
|
|
}
|
||
|
|
}
|