FleetCart/Modules/Support/Http/Controllers/CountryStateController.php
2023-06-11 13:14:03 +01:00

22 lines
413 B
PHP

<?php
namespace Modules\Support\Http\Controllers;
use Modules\Support\State;
class CountryStateController
{
/**
* Display a listing of the resource.
*
* @param string $countryCode
* @return \Illuminate\Http\Response
*/
public function index($countryCode)
{
$states = State::get($countryCode);
return response()->json($states);
}
}