app/Http/Controllers/CompradorController.php
/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index()
	{
		$idUser = Auth::user()->id;
		$compras = VentaPlan::where('user_id', $idUser)->get();
		return view('comprador.index', compact('compras'));
	}
public function index ( ) { $ idUser = Auth :: user ( ) -> id ; $ compras = VentaPlan :: where ( 'user_id' , $ idUser ) -> get ( ) ; return view ( 'comprador.index' , compact ( 'compras' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .