mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-04 06:23:17 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			275 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			275 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace Crater\Http\Controllers;
 | 
						|
 | 
						|
use Illuminate\Http\Request;
 | 
						|
use Crater\Country;
 | 
						|
 | 
						|
class LocationController extends Controller
 | 
						|
{
 | 
						|
    public function getCountries()
 | 
						|
    {
 | 
						|
        return response()->json([
 | 
						|
            'countries' => Country::all()
 | 
						|
        ]);
 | 
						|
    }
 | 
						|
}
 |