Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bataboom/pollsbb
Add polls to your laravel app with the power of Livewire
https://github.com/bataboom/pollsbb
laravel livewire polls
Last synced: 3 months ago
JSON representation
Add polls to your laravel app with the power of Livewire
- Host: GitHub
- URL: https://github.com/bataboom/pollsbb
- Owner: BataBoom
- License: mit
- Created: 2024-06-12T08:05:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-12T12:46:11.000Z (6 months ago)
- Last Synced: 2024-09-25T20:42:19.366Z (3 months ago)
- Topics: laravel, livewire, polls
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
![Gif](https://i.imgur.com/C1aDJBs.gif)
## Installation
You can install the package via composer:
```bash
composer require bataboom/pollsbb:dev-main
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="pollsbb-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="pollsbb-config"
```This is the contents of the published config file:
```php
return [
'user_model' => App\Models\User::class,
];
```Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="pollsbb-views"
```## Usage
```php
@php
$findPoll = \BataBoom\PollsBB\Models\Poll::all()->first();
@endphpafter create-poll is created it should auto redirect to view-poll but WIP, upgrading emit/etc from Livewire v2 to v3.
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [BataBoom](https://github.com/BataBoom)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.