You've already forked Epicnabbo-Catalogus-Updated-Daily
Add Team model and controller from upstream
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Community\Teams;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Community\Teams\WebsiteTeam;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class WebsiteTeamController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$teams = WebsiteTeam::where('is_active', true)
|
||||
->withCount('applications')
|
||||
->get();
|
||||
|
||||
return view('community.teams', compact('teams'));
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$team = WebsiteTeam::where('is_active', true)
|
||||
->with('applications')
|
||||
->findOrFail($id);
|
||||
|
||||
return view('community.team-applications', compact('team'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user