Skip to content

Commit 1bf28f8

Browse files
Update demo account passwords and reset interval
Update README demo credentials: Admin and Editor passwords changed to "Admin@123" and User password changed to "User@123". Also update demo site note to reflect reset interval changed from 24 hours to 30 minutes; destructive actions remain blocked in demo mode.
1 parent 98be7b2 commit 1bf28f8

6 files changed

Lines changed: 9 additions & 18 deletions

File tree

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ LaraCoreKit gives you a clean starting point with auth, users, roles/permissions
4949

5050
---
5151

52-
---
53-
5452
## What Ships Today
5553

5654
LaraCoreKit includes these official modules out of the box:
@@ -160,13 +158,11 @@ npm run dev
160158

161159
| Role | Email | Password |
162160
|------|-------|----------|
163-
| **Admin** | admin@laracorekit.com | password |
164-
| **Editor** | editor@laracorekit.com | password |
165-
| **User** | user@laracorekit.com | password |
161+
| **Admin** | admin@laracorekit.com | Admin@123 |
162+
| **Editor** | editor@laracorekit.com | Admin@123 |
163+
| **User** | user@laracorekit.com | User@123 |
166164

167-
> **Note:** Demo site resets every 24 hours. Destructive actions are blocked in demo mode.
168-
169-
---
165+
> **Note:** Demo site resets every 30 minutes. Destructive actions are blocked in demo mode.
170166
171167
---
172168

@@ -228,10 +224,6 @@ Every official LaraCoreKit module is installable, removable, versioned, and docu
228224

229225
## Features
230226

231-
---
232-
233-
## Features
234-
235227
### Modular Architecture
236228
- Clean separation of concerns
237229
- Each feature in its own module

modules/Core/src/Http/Livewire/LocaleSwitcher.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ public function switchLocale(string $locale)
2727
}
2828

2929
Session::put('locale', $locale);
30+
App::setLocale($locale);
3031
$this->currentLocale = $locale;
3132

32-
// Use JavaScript redirect instead of server-side redirect
33-
$this->dispatch('locale-switched');
34-
$this->js('window.location.reload()');
33+
$this->redirect(url()->previous(fallback: '/'), navigate: false);
3534
}
3635

3736
public function render()

modules/Core/views/livewire/locale-switcher.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="relative" x-data="{ open: false }">
22
<button
33
@click="open = !open"
4-
@click.away="open = false"
4+
@click.outside="open = false"
55
class="flex items-center space-x-2 px-3 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition"
66
>
77
<span>{{ $availableLocales[$currentLocale]['native'] }}</span>

public/build/assets/app-B6kDwOrc.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/build/assets/app-B7mweULo.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resources/css/app.css": {
3-
"file": "assets/app-B6kDwOrc.css",
3+
"file": "assets/app-B7mweULo.css",
44
"src": "resources/css/app.css",
55
"isEntry": true
66
},

0 commit comments

Comments
 (0)