You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Add fixed cms 🆙
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Community\Teams;
|
||||
|
||||
use App\Models\Community\Teams\WebsiteTeam;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
class TeamsController
|
||||
{
|
||||
public function __invoke(): View
|
||||
{
|
||||
$employees = WebsiteTeam::query()
|
||||
->where('hidden_rank', false)
|
||||
->with(['users' => fn ($q) => $q
|
||||
->select(['id', 'username', 'look', 'motto', 'team_id'])
|
||||
->orderBy('username'),
|
||||
])
|
||||
->orderBy('rank_name')
|
||||
->get();
|
||||
|
||||
return view('community.teams', compact('employees'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user