Skip to content

Add polls to your laravel app with the power of Livewire

License

Notifications You must be signed in to change notification settings

BataBoom/PollsBB

Repository files navigation

Gif

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.

About

Add polls to your laravel app with the power of Livewire

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published