Stacktoast Laravel 12 Boilerplate

Complete SaaS boilerplate with multi-stack support

Core Architecture & Laravel 12 Features

Modern Laravel 12 foundation and flexible stack options

Modern Laravel 12 Foundation

  • Latest Laravel 12 with all security updates and features
  • PHP 8.2+ modern features and performance optimizations
  • Production-ready configuration and environment setup
  • Full Laravel ecosystem compatibility (Eloquent, Artisan, etc.)
  • Optimized performance with caching and database indexes
  • Clean, maintainable code structure following Laravel best practices
  • Zero technical debt - build on a solid foundation from day one

Flexible Stack Options

  • Web Stack: Blade templates + Tailwind CSS + Alpine.js
  • API Stack: RESTful endpoints for any frontend framework
  • Combined: Use both Web and API stacks together
  • Coming Soon: NextJS, React, Angular, and mobile app starter templates
  • Dedicated directory structure (app/StackToast) keeps core Laravel clean
  • Service-based architecture with clean separation of concerns
  • Controllers kept thin (request handling and response formatting only)

Development Tools

  • Interactive configuration script (configure-stacktoast.sh)
  • AI IDE compatibility with Cursor and custom development rules
  • Environment-based configuration
  • Multi-environment support (development, staging, production)
  • Pre-configured Vite for asset compilation
  • Database seeding and factories
  • Laravel Artisan commands for development tasks
  • Dark and Light mode support with user preference storage
  • Frontend code covers all user-facing features for immediate deployment

Code Quality Standards

  • PSR-12 coding standards compliance
  • Well-documented code with PHPDoc and type hints
  • PHP 8.2+ features (constructor property promotion, match expressions)
  • Union types and nullable types where appropriate
  • Return type declarations for all methods
  • Form requests for validation
  • Middleware for authorization

Authentication & Security System

Multi-method authentication and advanced security features

Multi-Method Authentication

  • Traditional email/password login with validation
  • Magic link authentication (passwordless login)
  • Email PIN verification system
  • Social authentication: Google, Facebook, GitHub, Twitter (OAuth providers)
  • Laravel Sanctum for API authentication
  • Email verification system with custom notifications
  • Password strength validation and requirements

Two-Factor Authentication System

  • Google Authenticator support with QR code generation
  • SMS-based 2FA via Twilio integration
  • Backup recovery codes generation and management
  • 2FA enable/disable notifications
  • Recovery code usage tracking and notifications
  • Time-based One-Time Password (TOTP) support
  • QR code generation

Security Headers & Protection

  • HTTP Strict Transport Security (HSTS) with preload
  • Content Security Policy (CSP) for XSS prevention
  • X-Frame-Options protection against clickjacking
  • MIME-sniffing protection (X-Content-Type-Options)
  • Cross-Origin security policies (COEP, COOP, CORP)
  • File upload security with type validation and size limits
  • Advanced session security with timeout protection

Advanced Security Features

  • Captcha service integration: reCAPTCHA, hCaptcha, Turnstile (Cloudflare)
  • Rate limiting on authentication endpoints
  • Cloudflare security integration (rate limiting, country blocking, bot protection)
  • Account lockout after failed attempts
  • Secure password reset with token expiration
  • Session management and security
  • CSRF protection on all forms
  • XSS prevention measures

Comprehensive Payment Processing

Full payment processing ecosystem with multiple providers

Multi-Processor Support

  • Stripe: Full subscription and one-time payment support
  • Paddle: Complete subscription management and one-time payments
  • Lemon Squeezy: Subscription and one-time payment processing
  • Coinbase Commerce: Cryptocurrency payments (one-time only)
  • Multi-processor webhook handling
  • Payment processor configuration interface

Payment Features

  • Subscription management (create, update, cancel, pause, resume)
  • One-time payment processing
  • Trial period management with automatic conversion
  • Proration handling for plan changes
  • Multiple currency support
  • Payment method management (add, update, delete)
  • Failed payment recovery workflows

Advanced Billing System

  • Automatic invoice generation and PDF download
  • Payment failure handling and retry logic
  • Refund processing (full and partial)
  • Payment status tracking and notifications
  • Subscription status management
  • Payment status tracking
  • Automatic subscription renewal

Transaction & Payment Management

  • Pro-rated upgrades and downgrades
  • Invoice history with PDF generation
  • VAT/Tax management and calculation
  • Payment reminder notifications
  • Complete transaction history
  • Transaction search and filtering

Plan & Subscription Management

Flexible plan system and subscription features

Flexible Plan System

  • Multiple plan types (subscription, one-time, per-usage)
  • Trial period configuration per plan
  • Plan-specific features and limits
  • Role-based access control per plan
  • Plan activation/deactivation
  • Currency support per plan
  • Plan description and feature listing

Subscription Features

  • Subscription creation and management
  • Plan change requests (immediate or scheduled)
  • Subscription cancellation with feedback collection
  • Grace period management
  • Subscription renewal reminders
  • Automatic payment retry on failure
  • Subscription analytics and reporting

Coupon & Discount System

  • Global and plan-specific coupons
  • Percentage and fixed amount discounts
  • Usage limits (count and time-based)
  • Coupon expiration dates
  • API integration for supported processors
  • Manual discount application for non-API processors
  • Coupon management interface

Advanced Plan Features

  • Plan-based role assignment on purchase
  • Feature flags and limits per plan
  • Plan upgrade/downgrade workflows
  • Custom plan pricing and billing cycles
  • Plan popularity and featured plan settings
  • Plan deletion protection
  • Per-usage billing support (Stripe and Paddle)

User Management System

Complete user lifecycle management and administration

Profile Management

  • Complete user profile with avatar upload
  • Name, email, and timezone management
  • Password change with current password verification
  • Email change with verification
  • Profile picture upload and management
  • Account preferences and settings
  • Privacy settings management

Account Management

  • Account activation and deactivation
  • Account suspension with reason tracking
  • Account deletion with data cleanup
  • User registration with email verification
  • Social registration and linking
  • Account recovery and restoration

User Activity & Logging

  • Comprehensive user activity logging
  • Login/logout tracking with IP and device info
  • Payment and subscription activity logs
  • Profile change history
  • Security event logging
  • Activity timeline for users and admins
  • Audit trail for compliance

Role & Permission System

  • Role-based access control (RBAC)
  • Custom role creation and management
  • Permission inheritance and assignment
  • Plan-based role assignment
  • Super admin and admin roles
  • Guest and member role management
  • Role-based UI customization

Admin Dashboard & Analytics

Advanced analytics and comprehensive reporting features

Real-Time Metrics

  • Monthly Recurring Revenue (MRR) tracking
  • Annual Recurring Revenue (ARR) calculation
  • Churn rate analysis and tracking
  • Customer Lifetime Value (CLV) metrics
  • Active subscription count
  • Trial conversion rates
  • Total revenue tracking

Advanced Analytics

  • 30-day revenue snapshots
  • User growth and acquisition metrics
  • Plan popularity analysis
  • Payment processor performance comparison
  • Refund and chargeback tracking

Charts & Analytics

  • MRR monthly data
  • Total revenue
  • Interactive dashboard with Chart.js integration
  • Custom date range analytics
  • Real-time dashboard updates
  • Comprehensive analytics visualization

Admin User Management

  • Create, edit, activate, deactivate, delete users
  • Advanced search by name, email, subscription status
  • Bulk user operations and management
  • User subscription management interface
  • User communication and messaging

Notification & Communication System

Advanced notification and communication features

Email Notifications

  • Welcome emails for new registrations
  • Email verification and confirmation
  • Password reset notifications
  • Password changed confirmations
  • Magic link authentication emails
  • Payment success and failure notifications
  • Payment action required alerts
  • Payment reminder notifications
  • Subscription renewal reminders
  • Subscription cancellation confirmations
  • Manual subscription cancellation alerts (admin)
  • Registration reminder emails
  • Account cancellation confirmations
  • Trial expiration warnings
  • 2FA enabled/disabled notifications
  • 2FA recovery code usage alerts
  • New 2FA recovery codes generated notifications
  • Admin password change notifications
  • Account security notifications

In-App Notifications

  • Real-time notification dashboard
  • Mark as read/unread functionality
  • Notification categories and filtering
  • Notification preferences per user
  • Push notification support
  • Notification history and archive
  • Admin notification broadcasting

Payment Notifications

  • Successful payment confirmations
  • Failed payment alerts with retry options
  • Refund processing notifications
  • Invoice generation and delivery
  • Subscription cancellation confirmations
  • Plan change notifications
  • Billing address update confirmations

Communication Features

  • Multi-channel email delivery (SMTP, API-based)
  • Email templates with customizable branding
  • Notification preferences per user
  • Unsubscribe management and compliance
  • Email delivery tracking and analytics
  • Bulk email operations with queue processing
  • HTML and plain text email support

Additional Features & Integrations

Additional features and integrations for complete functionality

Marketing & Lead Generation

  • Waiting list management with autoresponder integration
  • Email service providers: MailChimp, Mailgun, SendGrid, Resend
  • Social proof and testimonial system

Performance & Optimization

  • Database query optimization
  • Caching strategies (Redis, Memcached)
  • Queue-based background job processing
  • Performance monitoring and logging
  • Email delivery optimization (Postmark, SES, SMTP)

UI/UX Features

  • Complete frontend implementation with Blade templates
  • Dark and Light mode toggle with user preference storage
  • Responsive design optimized for all device sizes
  • Alpine.js interactive components throughout the application
  • Tailwind CSS utility-first styling framework
  • Comprehensive user dashboard and profile management
  • Complete billing and subscription management UI
  • Admin panel with advanced data management interfaces
  • Form validation with real-time feedback
  • Loading states and progress indicators
  • Toast notifications and alert systems
  • Modal dialogs and interactive elements
  • Ready-to-deploy landing pages and marketing components

AI Cocktail Package

Universal AI integration with 20+ providers and advanced pipeline system

AI Cocktail Package

Universal AI integration with 20+ providers and advanced pipeline system

Text Generation AI

  • OpenAI: GPT-4.1, o4-mini, o3, and all latest models
  • Anthropic Claude: Claude Opus 4, Claude Sonnet 4, and other available models
  • Google Gemini: Gemini 2.5 Pro, Gemini 2.5 Flash, and other available models
  • Grok AI: Advanced reasoning and real-time information
  • Deepseek: Code-specialized models and reasoning
  • Hugging Face: Open-source model access
  • Perplexity: Research and fact-checking capabilities

Advanced Model Access

  • OpenRouter: Access to 100+ AI models through unified API
  • Ollama Integration: Local model deployment and inference
  • LocalAI: Self-hosted AI model serving
  • Custom endpoint support for proprietary models
  • Model fallback and redundancy systems
  • Automatic model selection based on task type
  • Cost optimization through provider switching

Image Generation AI

  • OpenAI GPT Image 1: Highest quality text-to-image generation
  • OpenAI DALL-E 3: Standard quality text-to-image generation
  • OpenAI DALL-E 2: Standard quality image generation
  • Google Gemini Imagen 4: Advanced image synthesis
  • Stability AI: Stable Diffusion 3.5, SDXL 1.0, Image Ultra, and other available models
  • Custom Stable Diffusion model support
  • LoRA and fine-tuned model integration
  • Multi-model comparison and selection

Voice & Audio Generation

  • OpenAI TTS: Multiple high-quality voices
  • ElevenLabs: Premium voice synthesis and cloning
  • HeyGen: AI avatar voice generation
  • Voice cloning and custom training
  • Multi-language voice support
  • Celebrity and character voice options
  • Real-time voice conversion

Video Generation AI

  • VEO 3: The most advanced video generation model from Google
  • HeyGen: AI avatar video creation with realistic presenters
  • Runway Gen-3 Alpha: Advanced text-to-video generation
  • Image-to-video conversion capabilities
  • Video extension and continuation
  • Custom avatar training and deployment
  • Multi-language video generation
  • Batch video processing

Search & Web Intelligence

  • TavilySearch: AI-powered research and fact-checking
  • SerperDev: Google Search API with structured results
  • BraveSearch: Privacy-focused search results
  • Real-time web information access
  • Source attribution and verification
  • Multi-language search support
  • Search result ranking and filtering

Advanced AI Pipeline System

  • Chain multiple AI operations with context preservation
  • Variable substitution between pipeline steps
  • Conditional execution and branching logic
  • Parallel processing for improved speed
  • Loop and iteration support
  • Dynamic step generation
  • Pipeline versioning and rollback

Ready to Build the Future?

Stacktoast provides the complete SaaS foundation while AI Cocktail adds powerful AI capabilities.
Together, they form the ultimate Laravel 12 AI-first development stack.

200+
Features
20+
AI Providers
100%
Laravel 12 Ready