Update .dockerignore and month highscore
This commit is contained in:
@@ -13,3 +13,5 @@ storage/framework/testing/*
|
|||||||
storage/framework/views/*
|
storage/framework/views/*
|
||||||
storage/logs/*
|
storage/logs/*
|
||||||
vendor/
|
vendor/
|
||||||
|
|
||||||
|
mariadb-data
|
||||||
|
@@ -57,7 +57,7 @@ class ShitController extends Controller
|
|||||||
|
|
||||||
public function highscores() {
|
public function highscores() {
|
||||||
|
|
||||||
$allshits = ShitUser::groupBy('user_id')->select('user_id', DB::raw('count(*) as total'))->orderByDesc('total')->get();
|
$allshits = ShitUser::whereMonth('created_at', Carbon::now()->month)->groupBy('user_id')->select('user_id', DB::raw('count(*) as total'))->orderByDesc('total')->get();
|
||||||
$users = User::all()->sortBy('name');
|
$users = User::all()->sortBy('name');
|
||||||
|
|
||||||
return view('highscores')->with([
|
return view('highscores')->with([
|
||||||
|
Reference in New Issue
Block a user