FleetCart/Modules/Support/Http/Controllers/CountryStateController.php
2023-12-03 14:07:47 +00:00

24 lines
435 B
PHP

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