Download the PHP package orangeshadow/polls without Composer
On this page you can find all versions of the php package orangeshadow/polls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download orangeshadow/polls
More information about orangeshadow/polls
Files in orangeshadow/polls
Download orangeshadow/polls
More information about orangeshadow/polls
Files in orangeshadow/polls
Vendor orangeshadow
Package polls
Short Description A Laravel package to create your polls
License MIT
Package polls
Short Description A Laravel package to create your polls
License MIT
Please rate this library. Is it a good library?
Informations about the package polls
Polls package for Laravel
Install
then copy config, migration and lang
run migration
Config
polls.php
-
enable or disable routing
-
prefix for manage polls API route
- array middleware for manage polls route
-
prefix for public API route
- array for manage polls route
- count items returned from api
Objects
Routes
admin route:
GET: /admin/poll - Get poll list
POST: /admin/poll - Store Poll
GET: /admin/poll/{poll} - Show poll
PUT: /admin/poll/{poll} - Update poll
DELETE: /admin/poll/{poll} - Remove poll
POST: /admin/poll/{poll}/close - Close Poll
GET: /admin/option - Get option list
POST: /admin/option - Store Option
GET: /admin/option/{option} - Show option
PUT: /admin/option/{option} - Update option
DELETE: /admin/option/{option} Remove option
public route for get poll with options (and result if user did voted)
POST: poll/{poll}
public route for voting (only for auth user)
POST: poll/{poll}/vote
FORM-DATA: {
options: array
}
Facade PollProxy
$pollProxy = app('PollPropxy',['poll'=>$poll])
Save Vote:
$pollProxy->voting($user_id,$options);
Get Result Array:
$pollProxy->getResult();
All versions of polls with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
illuminate/routing Version 5.5.x|5.6.x
illuminate/session Version 5.5.x|5.6.x
illuminate/support Version 5.5.x|5.6.x
illuminate/routing Version 5.5.x|5.6.x
illuminate/session Version 5.5.x|5.6.x
illuminate/support Version 5.5.x|5.6.x
The package orangeshadow/polls contains the following files
Loading the files please wait ....