whereAction(FileAction::ADD) ->get(); static::setTitle('Deathgarden: Rebirth | Download'); CompView::share('metaKeywords', ['Deathgarden', 'Rebirth', 'Download', 'Launcher']); CompView::share('metaDescription', 'Download the official Deathgarden: Rebirth launcher to easily install and update the Deathgarden: Rebirth mod.'); return view('web.download', ['files' => $files]); } public function downloadLauncher() { // Put launcher .exe into storage/app folder if(Storage::disk('local')->exists('Deathgarden Launcher_'.LauncherVersion::get()?->launcherVersion.'.exe')) return Response::download(Storage::disk('local')->path('Deathgarden Launcher_'.LauncherVersion::get()?->launcherVersion.'.exe')); abort(404); } public function patchNotes(): Factory|Application|View|\Illuminate\Contracts\Foundation\Application { static::setTitle('Deathgarden: Rebirth | Patch Notes'); CompView::share('metaKeywords', ['Deathgarden', 'Rebirth', 'patch', 'patchnnotes', 'patch notes']); CompView::share('metaDescription', 'Stay up to date with all the changes, improvements, and updates in Deathgarden: Rebirth. Below is a complete archive of every patch since the mods release.'); return view('web.patch-notes'); } public function howToPlay(): Factory|Application|View|\Illuminate\Contracts\Foundation\Application { static::setTitle('Deathgarden: Rebirth | How to Play'); return view('web.how-to-play'); } public function knownIssues(): Factory|Application|View|\Illuminate\Contracts\Foundation\Application { static::setTitle('Deathgarden: Rebirth | Known Issues'); return view('web.known-issues'); } public function eula(): Factory|Application|View|\Illuminate\Contracts\Foundation\Application { static::setTitle('Deathgarden: Rebirth | End User License Agreement'); return view('web.eula'); } public function credits(): Factory|Application|View|\Illuminate\Contracts\Foundation\Application { static::setTitle('Deathgarden: Rebirth | Credits'); return view('web.credits'); } protected static function setTitle(string $title) { CompView::share('title', $title); } }