taba/crm
最新稳定版本:v1.2.8
Composer 安装命令:
composer require taba/crm
包简介
A reusable CRM package for Laravel.
README 文档
README
Taba CRM Package for Laravel
A complete, "plug-and-play" CRM panel for Laravel, powered by Filament.
Taba CRM is a complete, reusable package that provides a full-featured CRM panel. It includes resources for managing posts, categories, and users, and comes pre-configured with essential plugins for a rich user experience.
✨ Features
- Resource Management: Pre-built Filament resources for Posts, Categories, and Users.
- Plugin Ecosystem: Integrated with popular plugins like Breezy (Profiles), Curator (Media), and Peek (Previews).
- Simple Installation: Get up and running with a single custom Artisan command.
- Customizable: Publishable assets (config, views, etc.) allow for easy customization.
📋 Prerequisites
Before you begin, ensure you have a fresh Laravel project with the following configured:
- Laravel 10+
- Filament 3+ installed (
php artisan filament:install --panels) - Database connection set up in your
.envfile.
🚀 Installation
Getting started is simple. Follow these steps to integrate Taba CRM into your project.
Step 1: Require with Composer
First, pull the package into your project.
composer require taba/crm
Step 2: Run the Install Command
Next, run our custom installation command. This smart command handles all the necessary setup for the package and its dependencies, including:
- Detecting and removing Tailwind CSS v4 if present (converting to v3)
- Automatically converting your
app.cssfrom Tailwind v4 to v3 syntax - Removing
@tailwindcss/viteplugin if present - Configuring Tailwind, Vite, and PostCSS
- Publishing assets and running migrations
php artisan crm:install
Note: The install command is smart and non-destructive. It will:
- Detect if you're using Tailwind CSS v4 and automatically convert your files to v3
- Skip modifications if files are already properly configured
- Only add what's needed without breaking existing configurations
Step 3: Register the Plugin
To activate the CRM panel, you need to register the CrmPlugin in your project's AdminPanelProvider.
Open app/Providers/Filament/AdminPanelProvider.php and add the plugin to the plugins() array:
// app/Providers/Filament/AdminPanelProvider.php use Taba\Crm\CrmPlugin; // 👈 Import the plugin at the top public function panel(Panel $panel): Panel { return $panel // ... other panel settings ->plugins([ new CrmPlugin(), // 👈 Add this line ]); }
Step 4: Compile Frontend Assets
Finally, compile your project's frontend assets to ensure the admin panel's styles and scripts are loaded correctly.
npm install npm run dev
And you're done! 🎉 You can now visit /admin and log in to access your new CRM panel.
🔧 Customization (Optional)
If you need to modify the package's default behavior, you can publish its assets.
php artisan vendor:publish --tag=crm-config php artisan vendor:publish --tag=crm-views php artisan vendor:publish --tag=crm-database
📄 License
The Taba CRM is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 373
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-12