lavalpine/core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lavalpine/core

Composer 安装命令:

composer require lavalpine/core

包简介

A SaaS-ready Laravel starter kit combining Livewire Volt and Alpine.js with a global dynamic modal and toast system, styled with Tailwind CSS.

README 文档

README

A SaaS-ready Laravel starter kit package combining Livewire Volt and Alpine.js with a global dynamic modal and toast notification system, elegantly styled with Tailwind CSS.

Laravel Version Livewire Version Alpine.js Tailwind CSS Total Downloads

🌟 Introduction

Building modern, reactive Laravel applications shouldn't mean wrestling with complex JavaScript frameworks or writing repetitive boilerplate code. Lavalpine Core is designed to give you the ultimate developer experience (DX) right out of the box by leveraging the official TALL stack.

Whether you're building a dashboard, an admin panel, or a full-fledged SaaS product, Lavalpine equips your project with robust global UI components (Modals and Toasts) driven by single-file Volt components.

🎯 Features

  • Global Dynamic Modal System: Render any Livewire Volt component inside a beautifully animated modal from anywhere in your application using a simple Alpine.js event dispatch. No more hidden <dialog> elements polluting your views!
  • Global Toast Notification: A sleek, self-dismissing toast notification system ready out of the box. Notify users of successful actions straight from your PHP backend.
  • Modern Tech Stack: Built natively for the modern TALL stack ecosystem, prioritizing Single File Components (Volt) for maximum developer experience.
  • Automated Installation: Simple CLI command to automatically inject the blueprints and assets directly into your fresh Laravel project.
  • Tailwind v4 Ready: Fully pre-configured for the latest Tailwind CSS standalone engine.

🛠️ System Requirements

  • PHP: 8.2 or higher
  • Laravel Framework: 11.x, 12.x, or 13.x
  • Livewire Volt: 1.0 or higher
  • Node.js & NPM: For building Vite assets

🚀 Installation & Usage

1. Require the Package

Install Lavalpine Core via Composer in your Laravel application:

composer require lavalpine/core

2. Run the Installer

Execute the artisan command. This will scaffold the global modal, toast, layout, and Tailwind CSS configurations directly into your application's resources directory:

php artisan lavalpine:install

3. Start Development

Compile your assets and start your local server:

npm run dev

💡 How to Use

Triggering the Global Modal

To trigger the global modal from any blade file, simply dispatch the open-lavalpine-modal event from Alpine.js and provide the name of your target Volt component:

<button @click="$dispatch('open-lavalpine-modal', { component: 'your-volt-component-name' })" class="px-4 py-2 bg-indigo-600 text-white rounded-lg">
    Open Modal
</button>

Triggering Toast Notifications

To trigger a toast notification directly from your backend Volt logic after an action (like saving data):

<?php
use function Livewire\Volt\{state};

$save = function () {
    // Save your data here...
    
    // Trigger the global toast
    $this->dispatch('show-toast', message: 'Successfully saved the data!');
};
?>

🎨 Customization

Because Lavalpine Core publishes its components directly into your resources/views/livewire and resources/views/layouts directories, you have absolute freedom to customize the HTML, Tailwind classes, and Alpine animations to match your brand's specific design guidelines.

🤝 Contributing & Contributors

We welcome contributions from the community! Lavalpine is open-source and powered by the collective effort of developers around the world.

If you'd like to contribute:

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'Add some amazing feature').
  4. Push to the branch (git push origin feature/amazing-feature).
  5. Open a Pull Request.

🎉 Thanks to Contributors

A massive thank you to everyone who has contributed to making Lavalpine better. Your pull requests, bug reports, and feature suggestions are deeply appreciated!

Contributors

🛡️ Security Vulnerabilities

If you discover a security vulnerability within Lavalpine, please send an e-mail to Fabian Syah Al Ghiffari via fabiansyahalghiffarireal@gmail.com. All security vulnerabilities will be promptly addressed.

📜 License

The Lavalpine Core package is open-sourced software licensed under the MIT license.

☕ Support This Project

If you find this starter kit helpful and it saves you hours of boilerplate coding, consider supporting my work! It helps keep the open-source maintenance alive.

Buy Me A Coffee

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固