src/CountryStore.php
public function administrativeAreas($country_id, Request $request = null)
    {
        $query = AdministrativeArea::where('country_id', $country_id)
            ->with('country');

        if ($request) {
            $resource = new Collection($query, 'administrative_area', $request);
            return $this->respondWithCollection($resource);
        }
        return $query->get();
    }
public function administrativeAreas($country_id, Request $request = null)
    {
        $query = AdministrativeArea::where('country_id', $country_id)
            ->with('country');

        if ($request) {
            $resource = new Collection($query, 'administrative_area', $request);
            return $this->respondWithCollection($resource);
        }
        return $query->get();
    }
public function administrativeAreas ( $ country_id , Request $ request = null ) { $ query = AdministrativeArea :: where ( 'country_id' , $ country_id ) -> with ( 'country' ) ; if ( $ request ) { $ resource = new Collection ( $ query , 'administrative_area' , $ request ) ; return $ this -> respondWithCollection ( $ resource ) ; } return $ query -> get ( ) ; }
Get Administrative areas collection of a country given

@param int $country_id
@param Illuminate\Http\Request $request
@return mixed Jnaxo\CountryCodes\AdministrativeArea collection
Get Administrative areas collection of a country given