Laravel devs, meet your new favorite admin panel. MoonShine 4 Beta isn’t just another CRUD generator—it’s a full-stack, AI-enhanced interface builder that turns your backend into a productivity powerhouse.
Whether you’re building an MVP, CMS, or internal dashboard, MoonShine 4 lets you ship faster, customize deeper, and scale smarter.
🚀 What Is MoonShine?
MoonShine is an open-source Laravel package for building admin panels, backoffice tools, and CMS interfaces. It’s built with:
- Blade + TailwindCSS → familiar, flexible, and fast
- Alpine.js → lightweight interactivity without the bloat
- Livewire support → reactive components, no JS fatigue
- AI-powered UX → smart defaults, predictive field generation, and adaptive layouts
MoonShine acts like a “framework on top of Laravel,” giving you a UI builder, resource manager, and customization engine—all in one.
🧠 What’s New in MoonShine 4 Beta?
✨ AI-Driven Field Suggestions
MoonShine now uses AI to auto-suggest form fields, relationships, and validation rules based on your model structure. It’s like having a junior dev preconfigure your admin UI.
🧩 Modular Resource System
Define resources with clean, declarative syntax:
class UserResource extends MoonShineResource
{
public function fields(): array
{
return [
ID::make(),
Text::make('Name'),
Email::make('Email'),
HasMany::make('Posts'),
];
}
}
🎨 Customizable Templates
Use Blade components or Livewire to override views, layouts, and widgets. No more fighting with rigid UI kits.
🔐 Role-Based Access Control
Built-in permission system lets you define who sees what—perfect for multi-role dashboards.
📦 Turbo Setup
Install MoonShine, define resources, and get a full admin panel in minutes:
composer require moonshine/moonshine
php artisan moonshine:install
🛠️ How to Add MoonShine 4 Beta to Your Laravel Project
1. Install the Package
composer require moonshine/moonshine
php artisan moonshine:install
This sets up MoonShine’s routes, views, and config files.
2. Set Up Authentication
MoonShine uses its own admin guard. Create an admin user:
php artisan moonshine:user
Log in at /moonshine with the credentials you set.
3. Create Your First Resource
Resources define how models appear in the admin panel.
php artisan moonshine:resource User
Edit UserResource.php:
public function fields(): array
{
return [
ID::make(),
Text::make('Name'),
Email::make('Email'),
HasMany::make('Posts'),
];
}
4. Use AI-Driven Field Suggestions
MoonShine 4 Beta introduces AI-powered field generation:
php artisan moonshine:resource User --ai
This auto-generates fields based on your model’s schema—saving time and reducing boilerplate.
5. Customize Views and Actions
Add custom actions, widgets, and filters:
Action::make('Export CSV', fn($query) => exportToCsv($query->get()))
->icon('heroicons.outline.download');
Use Blade or Livewire to override UI components.
6. Optimize for Efficiency
- ✅ Group fields with
Block::make() - ✅ Use filters for large datasets
- ✅ Define permissions with
Gate::define() - ✅ Cache heavy queries
- ✅ Use widgets for dashboards
🧰 Bonus: Extend with Packages
MoonShine supports extensions like:
- Media manager
- Charts and analytics
- Role-based access control
- Custom themes
Check the MoonShine GitHub for community packages and examples.
🧪 Use Cases That Shine
- SaaS dashboards → manage users, plans, billing
- CMS platforms → edit content, media, SEO fields
- Internal tools → track orders, support tickets, analytics
- MVPs → launch fast with full CRUD and auth baked in
MoonShine’s flexibility means you can start simple and scale up—without rewriting your admin logic.
🔮 Why It’s Trending
MoonShine 4 Beta hits the sweet spot between:
- Speed → faster than Nova, easier than Filament
- Flexibility → works with any model, any data source
- AI-enhanced UX → smart defaults, less boilerplate
- Open source → MIT licensed, community-driven
If you’re tired of bloated admin panels or rigid CMS frameworks, MoonShine is your upgrade.
✅ Final Thoughts
MoonShine 4 Beta isn’t just a Laravel package—it’s a mindset shift. With AI-driven UX, modular architecture, and full-stack customization, it empowers devs to build admin panels that scale with their apps.
