Fix history query

This commit is contained in:
2021-12-27 12:10:32 +01:00
parent 2d23f5da59
commit 16a5c49e1d

View File

@@ -14,7 +14,7 @@ class ShitController extends Controller
public function dashboard() { public function dashboard() {
$allshits = ShitUser::all()->sortByDesc('created_at')->take(100); $allshits = ShitUser::where('user_id', Auth::user()->id)->orderByDesc('created_at')->take(100)->get();
$buttonRand = collect(['Plop!', 'Pflomp!', 'Zwusch!', 'Blomp!'])->random(); $buttonRand = collect(['Plop!', 'Pflomp!', 'Zwusch!', 'Blomp!'])->random();
return view('dashboard')->with([ return view('dashboard')->with([
'allshits' => $allshits, 'allshits' => $allshits,