public function removeFav($id) { $fav = Favorito::find($id); $pub = $fav->pub_id; $fav->delete(); return Response::json(array('type' => 'success', 'action' => 'remove', 'msg' => 'Se removio esta publicación de sus favoritos.', 'url' => URL::to('usuario/publicaciones/agregar-favorito/' . $pub), 'popover' => 'Agregar a favoritos.')); }