spatie/mailcoach-ui
UI add-on for spatie/laravel-mailcoach. Provides the frontend assets and interface for the Mailcoach app, with maintained tests and static analysis. Documentation available on the Mailcoach site.
spatie/mailcoach-ui package is a frontend UI layer for the spatie/laravel-mailcoach email marketing system. It is a specialized, single-purpose UI (not a full framework like Laravel Nova or Filament) and integrates tightly with the core Mailcoach backend.spatie/laravel-mailcoach (v2.x+). Without it, the UI is useless. Must evaluate whether the core Mailcoach package aligns with project needs (e.g., SMTP, queueing, analytics).Campaign, Subscriber). No direct DB schema changes, but migrations must be run for the core package.Auth::user()). May need middleware adjustments if using custom auth (e.g., Sanctum, Passport).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Core Mailcoach Fit | High | Validate if laravel-mailcoach meets project requirements (e.g., transactional emails vs. marketing campaigns). |
| Frontend Conflicts | Medium | Audit existing JS/CSS build tools (e.g., Vite, Webpack) for compatibility with Laravel Mix. |
| Vue.js Version | Low | Check if the app uses Vue 2/3; may need plugin adjustments. |
| Stale Package | Medium | Last release in 2022; assess if features are still relevant (e.g., no Laravel 10 support). |
| Limited Customization | Medium | Plan for overrides via Blade extends/Theme classes if deep UI changes are needed. |
laravel-mailcoach a hard dependency? If not, what’s the fallback for email campaigns?CampaignSent).app.blade.php or custom CSS pipeline.window._ = window._ || {}; window._.Vue = Vue;).@extends or custom views.subscribers, campaigns tables).spatie/laravel-mailcoach (v2.x) via Composer.php artisan vendor:publish --provider="Spatie\Mailcoach\MailcoachServiceProvider")..env.php artisan vendor:publish --tag=mailcoach-assets
routes/web.php:
Route::middleware(['auth'])->group(function () {
Route::mailcoach();
});
resources/views/layouts/app.blade.php:
@vite(['resources/css/app.css', 'resources/js/app.js'])
@stack('scripts')
resources/css/mailcoach.css.vendor/spatie/mailcoach-ui/resources/views to resources/views/vendor/mailcoach-ui.| Component | Compatibility Notes |
|---|---|
| Laravel | Tested on 8/9; may need tweaks for 10 (e.g., Symfony 6+). |
| PHP | Requires PHP 8.0+. |
| Frontend Tools | Laravel Mix/Vite must support Tailwind 3+ and Vue 2/3. |
| Auth Systems | Works with Laravel’s default auth; may need middleware adjustments for Sanctum/Passport. |
| Queues | Supports Redis, database, etc., but must be configured in .env. |
laravel-mailcoach (core functionality).spatie/laravel-mailcoach is actively maintained, but mailcoach-ui is stagnant (last release 2022). Future Laravel updates may break compatibility.laravel-mailcoach updates (may require UI adjustments).php artisan view:clear.Mailcoach::send()).supervisor for Redis queues).Mailcoach::cache()) for template rendering.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| UI Assets Missing | Broken frontend | Verify vendor:publish ran; check file permissions. |
| Queue Worker Crashes | Emails not sent | Monitor queue jobs; set up retries. |
How can I help you explore Laravel packages today?