app/Http/Resources/MapLocationResource.php
/**
     * Transform the resource collection into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
Transform the resource collection into an array.
@param  \Illuminate\Http\Request  $request
@return array
Transform the resource collection into an array . @param \ Illuminate \ Http \ Request $request @return array
public function toArray($request)
    {
        JsonResource::withoutWrapping();
        return [
             $this->title,
             $this->lat,
             $this->lng,
             '',
             $this->getMapInfo()
        ];
    }
public function toArray ( $ request ) { JsonResource :: withoutWrapping ( ) ; return [ $ this -> title , $ this -> lat , $ this -> lng , '' , $ this -> getMapInfo ( ) ] ; }
Transform the resource collection into an array.
Transform the resource collection into an array .
//$this->getMapMarker(), custom marker