Fix history query
This commit is contained in:
@@ -14,7 +14,7 @@ class ShitController extends Controller
|
||||
|
||||
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();
|
||||
return view('dashboard')->with([
|
||||
'allshits' => $allshits,
|
||||
|
Reference in New Issue
Block a user