承接 darkperis/wcms-polls 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

darkperis/wcms-polls

Composer 安装命令:

composer require darkperis/wcms-polls

包简介

A Laravel package to create polls on Barb CMS

README 文档

README

A Laravel package to manage polls on Darkpony Barb CMS

Installation:

First, install the package through Composer.

composer require darkperis/wcms-polls

Publish migrations, and migrate

php artisan vendor:publish
php artisan migrate

Set up the admin middleware's name

A wcmspolls_config.php file will be added where you can put the name of the middleware used to protect the access and other things like pagination and prefix to protect your routes Add this line in the .env too

POLL_ADMIN_AUTH_MIDDLEWARE = auth
POLL_ADMIN_AUTH_GUARD = web
POLL_PAGINATION = 10
POLL_PREFIX = custompath

Manage polls via Polls dashboard

FRONT END USE

Specify the ID of the poll

{{ PollWriter::draw(Darkpony\WCMSPolls\Poll::find([POLL_ID])) }}

Override views

You can override the views related to the results page and both pages checkbox/radio via the same wcmspolls_config.php file in the config folder.

Route of the vote action

{{ route('poll.vote', $id) }}

Data passed to result view

  • $question : the question of the poll
  • $options : array of objects holding (name, percent, votes).

Data passed to the poll checkbox/radio

  • $question : the question
  • $options : holding the name and id of the option.

Warning - This is a private use package.

Warning - Do not use outside Darkpony Digital.

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固