alessio-ferretti/livewire-ticket

: livewire 中的迷你问题票务面板

v0.1.1 2023-10-11 11:54 UTC

This package is not auto-updated.

Last update: 2024-09-20 20:11:04 UTC


README

Latest Version on Packagist Total Downloads

为 livewire (2) laravel 项目提供的最小化问题票务包

安装

通过 Composer

$ composer require alessio-ferretti/livewire-ticket
$ php artisan migrate

使用方法

Bootstrap 5 和 Alpinejs

此包需要 Bootstrap 库

https://bootstrap.ac.cn/docs/5.2/getting-started/introduction/

并且对于 livewire datatable ( https://github.com/rappasoft/laravel-livewire-tables ),你需要在你的页面上包含

<script src="//unpkg.com/alpinejs" defer></script>

Livewire 指令

将 Livewire 指令添加到你的模板中,以包含单个组件

<html>
<body>
.....
@livewire('lt-new',['user_id' => 1])

@livewire('lt-manage',['user_id' => 1,'lt_ticket_id' => 1])

@livewire('lt-table',['theme'=>"bootstrap-5",'editRouteName'=>'hello'])


</body>
</html>

变更日志

请查看 changelog 获取最近更改的更多信息。

测试

$ composer test

贡献

请查看 contributing.md 获取详细信息和待办事项列表。

安全

如果你发现任何与安全相关的问题,请通过电子邮件 author@email.com 而不是使用问题跟踪器。

致谢

许可协议

MIT。请参阅 许可文件 了解更多信息。