You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
386 B

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use App\Tweet, App\Team, App\Mission;
class ScoreboardController extends Controller
{
public function index() {
$teams = Team::orderBy('name')->get();
$missions = Mission::orderBy('id')->get();
return view('scoreboard', [
'teams' => $teams,
'missions' => $missions
]);
}
}