Class 'App\Http\Controllers\Response' not found error in Laravel
<p>I've this issue in Laravel 5: <code>Class 'App\Http\Controllers\Response' not found</code>. I'm new in all this, so I need your help folks. </p>

<p>I'm trying to get a json response from my table 'funcionarios'.
My <strong>Controller</strong> is: </p>

<pre><code>&lt;? php

namespace App\ Http\ Controllers;

use Illuminate\ Http\ Request;

use App\ Http\ Requests;

use App\ funcionario;

class funcionarioPruebaController extends Controller {
  public
  function index() {

      try {

        $response = [
          'funcionarios' =&gt; []
        ];
        $statusCode = 200;
        $funcionario = \App\ funcionario::all() - &gt; take(9);

        foreach($funcionario as $item) {

          $response['funcionarios'][] = [
            'id_funcionario' =&gt; $item - &gt; id_funcionario,
            'nombre' =&gt; $item - &gt; nombre,
            'apellido' =&gt; $item - &gt; apellido,
            'ci' =&gt; $item - &gt; ci,
            'rango' =&gt; $item - &gt; rango,
            'direccion' =&gt; $item - &gt; direccion,
            'telefono' =&gt; $item - &gt; telefono

          ];
        }


      } catch (Exception $e) {
        $statusCode = 404;
      } finally {
        return Response::json(array('error' =&gt; false, $response, $statusCode));
      }

    } //
}
</code></pre>

<p>and my <strong>route.php</strong> is:</p>

<pre><code>Route::group(array('prefix' =&gt; 'xxx'), function() {
  Route::resource('funcionarios', 'funcionarioPruebaController');
});
</code></pre>

<p>How can I get all the rows in a json format?</p>