Fix when return Response::json

I get an error when return Response :: json ()

#### Argument 2 passed to must be an instance of Illuminate \ Http \ Response, instance of Illuminate \ Http \ JsonResponse given ####

I has fixed it, add fixed display when return json (not ajax)
This I took from: https://github.com/juy/profiler