<?php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use CloudCreativity\JsonApi\Contracts\Http\Requests\RequestInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param array ...$attributes
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
...
Request trims successful but using the
Dingo\Api\Http\Request. How can I use trim request used by this package?