whereAction(FileAction::ADD) ->get(); static::setTitle('Deathgarden: Rebirth | Download'); return view('web.download', ['files' => $files]); } public function downloadLauncher() { // Put launcher .exe into storage/app folder if(Storage::disk('local')->exists('launcher.exe')) return Response::download(Storage::disk('local')->path('launcher.exe')); abort(404); } 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 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); } }