first upload all files
This commit is contained in:
21
Modules/Support/Http/Controllers/CountryStateController.php
Normal file
21
Modules/Support/Http/Controllers/CountryStateController.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user