Skip to main content

Real-World Scenario

You’re building a B2B CRM (Customer Relationship Management) system for sales teams. Each company (team) needs to:
  • Track leads and opportunities through a sales pipeline
  • Manage customer relationships
  • Log interactions (calls, emails, meetings)
  • Forecast revenue
  • Collaborate on deals with team members
  • Generate sales reports

The Business Model

SaaS CRM Platform:
  • Each company subscribes and gets their own workspace
  • Sales teams can invite colleagues
  • All customer data is isolated per team
  • Subscription pricing based on # of users or features
  • Integration with email and calendar

Database Structure

1. Customers Table

2. Deals Table

Track sales opportunities and pipeline:

3. Interactions Table

Log all customer touchpoints:

4. Revenue Table

Track actual revenue from customers:

Complete Model Implementations

Customer Model

Deal Model with Pipeline Logic

Filament Resources

Deal Resource with Kanban View

Customer Resource

Dashboard Widgets

Sales Pipeline Widget

Why This Example is Production-Ready

Real Sales Methodology

  • ✅ Proper sales pipeline stages
  • ✅ Probability-based forecasting
  • ✅ Expected vs actual value tracking
  • ✅ Deal ownership and assignment
  • ✅ Loss reason tracking

Complete CRM Features

  • ✅ Customer lifecycle management
  • ✅ Interaction logging
  • ✅ Follow-up reminders
  • ✅ Revenue tracking
  • ✅ Lifetime value calculation

Business Intelligence

  • ✅ Pipeline value calculations
  • ✅ Expected revenue forecasting
  • ✅ Won/Lost tracking
  • ✅ Performance metrics
  • ✅ Activity monitoring

User Experience

  • ✅ Kanban board for deals (optional view)
  • ✅ Quick win/loss actions
  • ✅ Visual status indicators
  • ✅ Smart filtering
  • ✅ Mobile-friendly

Data Integrity

  • ✅ Soft deletes for customers
  • ✅ Proper foreign key relationships
  • ✅ Automatic calculations
  • ✅ State management (won/lost)
  • ✅ Historical data preservation
This CRM example demonstrates how to build a sophisticated, real-world application with Larafast Multi-Tenancy!