技术 / 技术组件
技术/技术组件是建立在 Laravel/framework 和 TailwindCss 之上的 Laravel 组件框架构建器。它提供了一套 Laravel 组件,可用于构建 Laravel 应用程序。
v0.1.2
2023-10-20 03:56 UTC
Requires
- php: >=7.4.0
This package is auto-updated.
Last update: 2024-09-13 03:41:07 UTC
README
关于技术/技术组件
为 SmartERP 和 SmartPOS 组件构建
安装
您可以通过 composer 安装此包
composer require turbotech/turbotech-component
使用方法
在 config/app.php
的 providers
中
'providers' => [ /* * Laravel Framework Service Providers... */ ... TURBOTECH\Component\ServicesProvider::class, ]
在 composer.json
的 providers
中
"autoload": { "psr-4": { ... "TURBOTECH\\Component\\":"vendor/turbotech/turbotech-component/src" } },
Tailwindcss 样式支持
将 ./vendor/turbotech/turbotech-component/src/view/*.blade.php
添加到 content
中以从包中编译样式。
content: [ ... "./vendor/turbotech/turbotech-component/src/view/*.blade.php", "./vendor/turbotech/turbotech-component/src/view/**/*.blade.php", "./vendor/turbotech/turbotech-component/src/view/**/**/*.blade.php", "./vendor/turbotech/turbotech-component/src/view/**/**/**/*.blade.php", ],
如果通过 Laravel Modules 包编译
const path = require('path');
content: [ ... path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/*.blade.php"), path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/**/*.blade.php"), path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/**/**/*.blade.php"), path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/**/**/**/*.blade.php"), ]
则使用 Tailwindcss 编译 css
npm run watch
以启动服务器
php artisan serve
贡献者
社区
许可
MIT 许可证 (MIT)。请参阅 许可文件 获取更多信息。