This commit is contained in:
2022-05-04 15:41:02 +08:00
commit c76a1850a1
766 changed files with 201246 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers;
use App\Models\Vote;
class IndexController extends Controller
{
function index()
{
$list = Vote::all();
return view('index.index', compact('list'));
}
function vote(Vote $vote)
{
return view('index.vote', compact('vote'));
}
}