public function countries(Request $request = null)
    {
        $query = Country::with('zone');

        if ($request) {
            $resource = new Collection($query, 'country', $request);
            return $this->respondWithCollection($resource);
        }
        return $query->get();
    }
public function countries(Request $request = null)
    {
        $query = Country::with('zone');

        if ($request) {
            $resource = new Collection($query, 'country', $request);
            return $this->respondWithCollection($resource);
        }
        return $query->get();
    }
public function countries ( Request $ request = null ) { $ query = Country :: with ( 'zone' ) ; if ( $ request ) { $ resource = new Collection ( $ query , 'country' , $ request ) ; return $ this -> respondWithCollection ( $ resource ) ; } return $ query -> get ( ) ; }
Get Country list

@param Illuminate\Http\Request $request
@return mixed Jnaxo\CountryCodes\Country collection
Get Country list