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