app/Http/Resources/LogCollection.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)
    {
        return [
            'data' => $this->collection,
            'links' => [
                'self' => '/'
            ]
        ];
    }
public function toArray ( $ request ) { return [ 'data' => $ this -> collection , 'links' => [ 'self' => '/' ] ] ; }
Transform the resource collection into an array.
Transform the resource collection into an array .