mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:51:06 +03:30
19 lines
340 B
PHP
19 lines
340 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class MedicalCenter extends Model
|
|
{
|
|
public $fillable = ['name', 'city_id', 'address', 'phone_number'];
|
|
public function users()
|
|
{
|
|
return $this->hasMany('App\User');
|
|
}
|
|
public function city()
|
|
{
|
|
return $this->belongsTo('App\City');
|
|
}
|
|
}
|