22 行
503 B
PHP
22 行
503 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Video;
|
|
use Illuminate\Support\Facades\DB;
|
|
// use Illuminate\Support\Facades\Log;
|
|
|
|
class Game {
|
|
private $menu;
|
|
private $user;
|
|
|
|
public function __construct ($m, $u) {
|
|
$this->menu = $m;
|
|
$this->user = $u;
|
|
}
|
|
|
|
public function index () {
|
|
$res = DB::table('vid_game')->get();
|
|
if (!$res) return notfound($this->menu, $this->user, $res);
|
|
return view('pages.site.video.game', ['res' => $res, 'menu' => $this->menu, 'user' => $this->user]);
|
|
}
|
|
}
|