mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
19 lines
290 B
PHP
19 lines
290 B
PHP
<?php
|
|
namespace Crater;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Crater\State;
|
|
|
|
class City extends Model
|
|
{
|
|
public function state()
|
|
{
|
|
return $this->belongsTo(State::class);
|
|
}
|
|
|
|
public function address()
|
|
{
|
|
return $this->hasMany(Address::class);
|
|
}
|
|
}
|