justinbyrne/a-bunch-of-livewire-components
Composer 安装命令:
composer require justinbyrne/a-bunch-of-livewire-components
包简介
As the title suggests it, this is a bunch of Livewire components that can be reused in any Laravel app.
README 文档
README
As the title suggests it, this is a bunch of Livewire components that can be reused in any Laravel app.
Requirements
- Laravel 9.x
- Tailwind CSS
- Tailwind CSS Forms plugin
- Alpine.js
Installation
You can install the package via composer:
composer require justinbyrne/a-bunch-of-livewire-components
You can publish the config file with:
php artisan vendor:publish --tag="a-bunch-of-livewire-components-config"
The tailwind config will either need the vendor dir config file added of the published one.
// tailwind.config.js module.exports = { content: { "./vendor/justinbyrne/a-bunch-of-livewire-components/config/a-bunch-of-livewire-components.php", // ... }, }
Components
Autocomplete
@livewire('abolc-autocomplete', ['model' => 'App\Models\User'])
| parameter | Value type | default |
|---|---|---|
| model | model class e.g. App\Models\User |
null |
| name | form input name parameter vaule e.g. user_id |
null |
| display | the value from the model to display | name |
| value | the value from the model to save | id |
| label | the input box label text | Search |
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-31
