Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Location/app/Models/CountryState.php
Назад
<?php namespace Modules\Location\app\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; use Modules\Location\Database\factories\CountryStateFactory; class CountryState extends Model { use HasFactory; /** * The attributes that are mass assignable. */ protected $fillable = ['country_id','title','slug','status']; protected static function newFactory(): CountryStateFactory { //return CountryStateFactory::new(); } public function country(){ return $this->belongsTo(Country::class); } public function cities(){ return $this->hasMany(City::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка