checkPermission('settings-manage'); $this->checkPermission('restrictions-manage-all'); $deletions = Deletion::query()->with(['deletable', 'deleter'])->paginate(10); return view('settings.recycle-bin', [ 'deletions' => $deletions, ]); } /** * Empty out the recycle bin. */ public function empty() { $this->checkPermission('settings-manage'); $this->checkPermission('restrictions-manage-all'); (new TrashCan())->destroyFromAllDeletions(); return redirect('/settings/recycle-bin'); } }