1 2 3 4 5
public function render($request, Exception $exception) { $request->headers->set('Accept', 'application/json'); return parent::render($request, $exception); }