<?php namespace App\Presenters;

use Prettus\Repository\Presenter\FractalPresenter;

abstract class ExtendedFractalPresenter extends FractalPresenter
{
    public function parseIncludes($includes = array())
    {
        $request        = app('Illuminate\Http\Request');
        $paramIncludes  = config('repository.fractal.params.include','include');

        if ( $request->has( $paramIncludes ) ) {
            $includes = array_merge($includes, explode(',', $paramIncludes));
        }

        $this->fractal->parseIncludes($includes);

        return $this;
    }
}

<?php namespace App\Presenters;

use Request;
use Prettus\Repository\Presenter\FractalPresenter;

abstract class ExtendedFractalPresenter extends FractalPresenter
{
    public function parseIncludes($includes = array())
    {
        $request        = app('Illuminate\Http\Request');
        $paramIncludes  = config('repository.fractal.params.include','include');

        if ( $request->has( $paramIncludes ) ) {
            $includes = array_merge($includes, explode(',', Request::input($paramIncludes)));
        }

        $this->fractal->parseIncludes($includes);

        return $this;
  	}
}

Fix bug concerning include parameter
Fix bug concerning include parameter

The ExtendedFractalPresenter had a bug causing it to ignore the content
of the include uri parameter.

Now you can call /api/{some resource}?include={relation1},{relation2}
and the relations will be included in the response.
