Zephyrus now requires proper authentication. The auto-login bypass has been removed to ensure proper security in production.
- Before: Automatically logged in as admin and redirected to dashboard
- After: Redirects to login page if not authenticated, or to dashboard if already logged in
All application routes now require authentication via the auth middleware:
- Dashboard routes (
/dashboard,/dashboard/rtdc, etc.) - Analytics routes (
/analytics/*) - Operations routes (
/operations/*) - Predictions routes (
/predictions/*) - RTDC routes (
/rtdc/*) - ED routes (
/ed/*) - Improvement routes (
/improvement/*)
A modernized login page is available at /login with:
- Clean, professional UI using HeroUI components
- Password visibility toggle
- Remember me functionality
- Dark mode support
- Demo credentials display
Run the seeder to create default users:
php artisan db:seed --class=UserSeeder| Username | Password | Name | Workflow Preference | Description |
|---|---|---|---|---|
admin |
password |
Administrator | Superuser | System administrator |
sanjay |
sanjay |
Sanjay | Perioperative | Perioperative workflow user |
acumenus |
acumenus |
Acumenus | Superuser | Superuser access |
kartheek |
kartheek |
Kartheek | RTDC | RTDC workflow user |
hakan |
hakan |
Hakan | Improvement | Improvement workflow user |
-
Run migrations (if not already done):
php artisan migrate
-
Seed the database with default users:
php artisan db:seed --class=UserSeeder
-
Access the application:
- Visit http://localhost:8001
- You'll be redirected to the login page
- Use any of the default credentials above
You can create additional users via:
-
Laravel Tinker:
php artisan tinker
User::create([ 'name' => 'John Doe', 'email' => 'john@example.com', 'username' => 'johndoe', 'password' => bcrypt('yourpassword'), 'workflow_preference' => 'perioperative' ]);
-
Database Seeder: Add to
database/seeders/UserSeeder.php -
Registration Page: Visit
/register(if enabled)
- Change default passwords for all seeded accounts
- Re-enable CSRF protection on routes (currently disabled for development)
- Review user seeder - consider disabling auto-seeding in production
- Set strong APP_KEY in
.env - Use HTTPS for all production traffic
- Enable session security settings in
config/session.php
Ensure these are properly set in production .env:
APP_ENV=production
APP_DEBUG=false
APP_KEY=base64:YOUR_PRODUCTION_KEY_HERE
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_SECURE_COOKIE=true
SESSION_HTTP_ONLY=true
SESSION_SAME_SITE=strictIn routes/web.php, remove the withoutMiddleware call:
// Development (current):
Route::middleware(['auth'])
->withoutMiddleware([\Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class])
->group(function () {
// routes...
});
// Production (recommended):
Route::middleware(['auth'])->group(function () {
// routes...
});- Clear your browser cookies and cache
- Run
php artisan config:clear - Check that
SESSION_DRIVERin.envmatches your setup
- Ensure you've run the seeder:
php artisan db:seed --class=UserSeeder - Check the database to verify users exist:
php artisan tinker→User::all() - Try clearing the application cache:
php artisan cache:clear
- Check that the user exists in the database
- Verify session is working: check
storage/framework/sessions - Ensure cookies are enabled in your browser
- Clear route cache:
php artisan route:clear - Restart the development server
- Check that HandleInertiaRequests middleware is sharing auth data
For API endpoints, consider implementing:
- Laravel Sanctum token authentication
- OAuth2 via Laravel Passport
- JWT tokens
routes/web.php- Route definitions with auth middlewareroutes/auth.php- Authentication routes (login, register, password reset)app/Http/Middleware/HandleInertiaRequests.php- Shares auth data with frontenddatabase/seeders/UserSeeder.php- Creates default usersresources/js/Pages/Auth/Login.jsx- Login page componentresources/js/Layouts/GuestLayout.jsx- Layout for authentication pages
For issues or questions:
- Check docs/README.md for the documentation map (the pre-2.0 platform snapshot is archived at docs/archive/PLATFORM-TECHNICAL-REFERENCE-2026-02-28.md)
- Review Laravel Breeze documentation
- Consult the Inertia.js authentication guide
Last Updated: February 28, 2026
Version: 1.0