title: Call to undefined method Illuminate\Http\Response::json() in Laravel5
body: <p>I am trying to response a json with the json array  in Laravel5 </p>
  
  <pre><code>namespace App\Http\Controllers;
  use Illuminate\Routing\ResponseFactory;
  use Illuminate\Http\Request;
  use Illuminate\Http\Response;
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use App\Event;
  
  class EventsapiController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          //
          $events =  Event::All();
  
          return Response::json([
  
                  'data'=&gt;$events
  
          ],200);
  
      }
  }
  </code></pre>
  
  <p>Its giving me this error </p>
  
  <pre><code>Call to undefined method Illuminate\Http\Response::json() in Laravel5
  </code></pre>
  
  <p>So how do we pass json in Laravel 5 ? , I Already know laravel returns automatically json array but I don't want to do that </p>
  
  <p>Thanks </p>