mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 03:31:09 -04:00
20 lines
319 B
PHP
20 lines
319 B
PHP
<?php
|
|
namespace Laraspace;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Laraspace\State;
|
|
use Laraspace\Country;
|
|
|
|
class City extends Model
|
|
{
|
|
public function state()
|
|
{
|
|
return $this->belongsTo(State::class);
|
|
}
|
|
|
|
public function address()
|
|
{
|
|
return $this->hasMany(Address::class);
|
|
}
|
|
}
|