mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 22:13:18 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			292 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			292 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace Crater;
 | 
						|
 | 
						|
use Illuminate\Database\Eloquent\Model;
 | 
						|
use Crater\State;
 | 
						|
 | 
						|
class Country extends Model
 | 
						|
{
 | 
						|
    public function states()
 | 
						|
    {
 | 
						|
        return $this->hasMany(State::class);
 | 
						|
    }
 | 
						|
 | 
						|
    public function address()
 | 
						|
    {
 | 
						|
        return $this->hasMany(Address::class);
 | 
						|
    }
 | 
						|
}
 |