feat: final updates
This commit is contained in:
+7
-3
@@ -11,11 +11,11 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class City
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $province_id
|
||||
* @property string $name
|
||||
*
|
||||
*
|
||||
* @property Province $province
|
||||
* @property Collection|User[] $users
|
||||
*
|
||||
@@ -24,7 +24,6 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class City extends Model
|
||||
{
|
||||
protected $table = 'cities';
|
||||
public $timestamps = false;
|
||||
public static $snakeAttributes = false;
|
||||
|
||||
protected $casts = [
|
||||
@@ -45,4 +44,9 @@ class City extends Model
|
||||
{
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
|
||||
public function airports()
|
||||
{
|
||||
return $this->hasMany(Airport::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user