/** * Display a listing of the resource. * * @return Response */ public function index() { $permiso = Permiso::get(); //return 'Hello, API'; return Response::json(array('error' => false, 'permisos' => $permiso->toArray()), 200); }