mirror of https://github.com/MarceauKa/shaark.git
20 lines
379 B
PHP
20 lines
379 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Link;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
public function index(Request $request)
|
|
{
|
|
$links = Link::latest()->withPrivate(auth()->check())->paginate(25);
|
|
|
|
return view('home')->with([
|
|
'links' => $links,
|
|
]);
|
|
}
|
|
}
|