bataboom/pollsbb
Composer 安装命令:
composer require bataboom/pollsbb
包简介
add polls to your laravel app
关键字:
README 文档
README
Installation
You can install the package via composer:
composer require bataboom/pollsbb:dev-main
You can publish and run the migrations with:
php artisan vendor:publish --tag="pollsbb-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="pollsbb-config"
This is the contents of the published config file:
return [ 'user_model' => App\Models\User::class, ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="pollsbb-views"
Usage
<x-app-layout> <livewire:create-poll /> @php $findPoll = \BataBoom\PollsBB\Models\Poll::all()->first(); @endphp <livewire:view-poll :poll="$findPoll" /> </x-app-layout> after create-poll is created it should auto redirect to view-poll but WIP, upgrading emit/etc from Livewire v2 to v3.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-12