mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04: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()
 | |
|         ]);
 | |
|     }
 | |
| }
 |