summaryrefslogtreecommitdiff
path: root/site/app/Http/Controllers/IndexController.php
blob: 745a023e99c2ea93940eecf70d9d607092e5dcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php                                                                                                                                                                                                                
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Helpers\CryptoHelper;

use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;

class IndexController extends Controller {
    /**
     * Shows the index page.
     *
     * @return Response
     */
    public function showPage(Request $request) {
  
	//$data = DB::table('angebote')->orderBy('quotient', 'DESC')->limit(100)->get();
	$data = DB::table('angebote')->orderBy('quotient', 'DESC')->limit(100)->simplePaginate(20);

        return view('index', ['data' => $data]);
    }
}