From 1b67756a940e767205e3e0d3e0edb9d77055ebcd Mon Sep 17 00:00:00 2001 From: arriej Date: Fri, 5 Sep 2025 22:28:26 +0200 Subject: [PATCH] backup --- Dockerfile | 5 ++- app/Providers/Filament/UserPanelProvider.php | 4 +- config/app.php | 2 +- resources/views/landing/index.blade.php | 40 ++++++++++++++++++++ routes/web.php | 16 +++++++- 5 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 resources/views/landing/index.blade.php diff --git a/Dockerfile b/Dockerfile index bea97f1..2ad9fdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ FROM php:8.3-apache RUN apt-get update && apt-get install -y libpq-dev libzip-dev unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev && \ docker-php-ext-install pdo_pgsql pgsql zip bcmath gd intl -RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \ - apt-get install -y nodejs npm +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y nodejs && \ + npm install -g npm@latest RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ rm composer-setup.php diff --git a/app/Providers/Filament/UserPanelProvider.php b/app/Providers/Filament/UserPanelProvider.php index 06ce4bd..775d018 100644 --- a/app/Providers/Filament/UserPanelProvider.php +++ b/app/Providers/Filament/UserPanelProvider.php @@ -24,7 +24,7 @@ class UserPanelProvider extends PanelProvider { return $panel ->id('user') - ->path('') // Serve at root + ->path('lobby') // Serve at root ->login() ->colors([ 'primary' => Color::Purple, // Purple for user panel @@ -33,7 +33,7 @@ class UserPanelProvider extends PanelProvider ->discoverResources(in: app_path('Filament/User/Resources'), for: 'App\\Filament\\User\\Resources') ->discoverPages(in: app_path('Filament/User/Pages'), for: 'App\\Filament\\User\\Pages') ->pages([ - Pages\Dashboard::class, // Lobby as dashboard + \App\Filament\User\Pages\Lobby::class, // Lobby as dashboard ]) ->discoverWidgets(in: app_path('Filament/User/Widgets'), for: 'App\\Filament\\User\\Widgets') ->widgets([ diff --git a/config/app.php b/config/app.php index 423eed5..554160e 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ return [ | */ - 'name' => env('APP_NAME', 'Laravel'), + 'name' => env('APP_NAME', 'Skunk Lounge'), /* |-------------------------------------------------------------------------- diff --git a/resources/views/landing/index.blade.php b/resources/views/landing/index.blade.php new file mode 100644 index 0000000..7f95d4d --- /dev/null +++ b/resources/views/landing/index.blade.php @@ -0,0 +1,40 @@ + + + + + + Skunk Lounge - Fake Casino + + + + +
+

Welcome to Skunk Lounge

+

Self-hosted fake casino for entertainment only. No real money—only fake currency for dopamine rushes. Mimicking Stake.com and Jetmyst.com with sleek navigation and vibrant games.

+
+
+

Games Available

+

{{ $gamesCount }}

+
+
+

Registered Users

+

{{ $usersCount }}

+
+
+

Biggest Jackpot Won

+

${{ $biggestJackpot }}

+
+
+
+ Login + Register +
+
+ + \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index cbb2e95..1e14b22 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,11 +1,23 @@ route('filament.user.pages.lobby'); + if (auth()->check()) { + return redirect()->route('filament.user.pages.lobby'); + } + $gamesCount = 10; // Placeholder + $usersCount = 100; // Placeholder + $biggestJackpot = 5000; // Placeholder + return view('landing.index', compact('gamesCount', 'usersCount', 'biggestJackpot')); })->name('home'); +// Explicit logout route for Filament user panel +Route::post('/logout', [AuthenticatedSessionController::class, 'destroy']) + ->middleware('auth') + ->name('filament.user.auth.logout'); + // Include Breeze auth routes require __DIR__.'/auth.php'; \ No newline at end of file