This commit is contained in:
Fayyazi
2019-12-01 14:23:29 +03:30
parent 94d1bda083
commit 9526ec80fd
38 changed files with 658 additions and 270 deletions
+5 -1
View File
@@ -6,9 +6,13 @@ use Illuminate\Database\Eloquent\Model;
class MedicalCenter extends Model
{
public $fillable = ['name'];
public $fillable = ['name', 'city_id', 'address', 'phone_number'];
public function users()
{
return $this->hasMany('App\User');
}
public function city()
{
return $this->belongsTo('App\City');
}
}