Update .dockerignore and month highscore

This commit is contained in:
2021-12-30 17:34:54 +01:00
parent 16a5c49e1d
commit f79b2ec8a9
2 changed files with 3 additions and 1 deletions

View File

@@ -13,3 +13,5 @@ storage/framework/testing/*
storage/framework/views/*
storage/logs/*
vendor/
mariadb-data

View File

@@ -57,7 +57,7 @@ class ShitController extends Controller
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');
return view('highscores')->with([