A modern, bilingual (English/Spanish) CMS-powered website for Solution Focused Coach Orsi Szabo, built with Laravel 12, Filament Admin Panel, and Tailwind CSS 4.
- Base Language: English
- Secondary Language: Spanish
- Language Switcher: Available in header (both desktop and mobile)
- Automatic Locale Detection: Based on URL prefix or session
- Fallback: Defaults to English if no locale is specified
/team- Meet the Team/training- About the Training/certification- Coach Certification/team-coaching- Team Coaching Sessions/contact- Contact
/equipo- Equipo/formacion- FormaciΓ³n/certificacion- CertificaciΓ³n/coaching-equipos- Coaching de Equipos/contacto- Contacto
- Default (no prefix): Uses session locale or defaults to English
- Prefixed routes:
/en/*and/es/*for explicit locale selection - Language switcher:
/language/{locale}sets session and redirects back
SetLocalemiddleware handles locale detection and application- Checks URL prefix first, then session, defaults to English
- Registered in web middleware group
lang/en/messages.php- English translationslang/es/messages.php- Spanish translations- All UI text uses
__('messages.key')helper - Database content is stored separately per language
# Setup
composer install
npm install
touch database/database.sqlite
php artisan migrate
php artisan db:seed
npm run build
# Start server
php artisan serveVisit:
- English (default): http://127.0.0.1:8000
- Spanish: http://127.0.0.1:8000/language/es
- Admin: http://127.0.0.1:8000/admin
- URL: http://127.0.0.1:8000/admin
- Email: admin@solutionfocus.es
- Password: password
- Log into admin panel
- Go to Pages
- Create separate page entries for each language:
- English slugs:
team,training,certification,team-coaching - Spanish slugs:
equipo,formacion,certificacion,coaching-equipos
- English slugs:
To add additional languages:
- Create new language file:
lang/{locale}/messages.php - Add locale to
$supportedLocalesinSetLocalemiddleware - Update language switcher in
header.blade.php - Create corresponding page content in database
- Teal color scheme for consistency
- Solution-focused, friendly language
- Responsive design (mobile-first)
- Clean, modern interface
- Accessible navigation
The language switcher appears in:
- Desktop header (top right)
- Mobile menu (bottom)
Clicking EN/ES:
- Sets session locale
- Redirects to same page
- Updates all UI text
- Persists across page loads
- Backend: Laravel 12
- Admin Panel: Filament 3.2
- Frontend: Blade + Tailwind CSS 4 + Alpine.js
- Localization: Laravel's built-in i18n
- Database: SQLite (local) / MySQL (production)
- Separate entries for each language
- Slug determines language association
- Example:
team(EN) andequipo(ES)
- Language-neutral configuration
- Shared across all locales
/- Homepage/teamor/equipo- Team page/contact- Contact page
/en/- English homepage/en/team- English team page/es/- Spanish homepage/es/equipo- Spanish team page
- Mobile: < 640px
- Tablet: 640px - 1024px
- Desktop: > 1024px
- CSRF protection
- SQL injection prevention
- XSS protection
- Password hashing
- Session security
Contact form supports both languages:
- Success messages in user's locale
- Email templates can be localized
- Configure SMTP in Laravel Cloud
- Connect repository
- Set environment variables
- Configure MySQL database
- Run migrations:
php artisan migrate --force - Seed database:
php artisan db:seed --force - Build assets:
npm run build
APP_LOCALE=en
APP_FALLBACK_LOCALE=enAll content emphasizes:
- Building futures, not analyzing problems
- Client resources and strengths
- Small, concrete steps
- What works, not what's broken
- Positive, empowering language
- README.md - This file
- DEPLOYMENT.md - Laravel Cloud deployment
- CMS-GUIDE.md - Content management
- PROJECT-SUMMARY.md - Project overview
# Switch language programmatically
App::setLocale('es');
# Get current locale
app()->getLocale();
# Translate strings
__('messages.nav.team')
# Clear cache
php artisan cache:clear
php artisan view:clear- β Bilingual (EN/ES) with easy language switching
- β Solution-focused content
- β CMS-powered with Filament
- β Responsive design
- β SEO optimized
- β Admin panel
- β Contact form
- β Modern UI
- Clear browser cache
- Check session cookie
- Verify middleware is registered
- Check language files exist
- Verify key matches
messages.{key} - Default language (EN) will be used as fallback
- Verify page slug matches locale
- Check database has both EN and ES pages
- Ensure published status is true
Built with β€οΈ for Solution-Focused Coaching
Ready to deploy bilingual! ππ