承接 ramzyvirani/rateandreview 相关项目开发

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

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

ramzyvirani/rateandreview

Composer 安装命令:

composer require ramzyvirani/rateandreview

包简介

Rate and Review Module for ramzyvirani/laravel-boilerplate

README 文档

README

Maintainability Test Coverage

Install this package with my boilerplate to add Rate and Review feature in your application. This module registers below components in the application.

This module implements Laravel's polymorphic relations so that you can easily attach one or more models.

PS: This module is highly dependant on the Boilerplate. Because this module extends some of the base classes Boilerplate has.

General

  • Configuration
  • Helper
  • Migration
  • Model
  • Repository

Admin

  • Controller
  • Data Table
  • Request Classes
  • Routes
  • Views

API

  • Controllers
  • Criteria
  • Request Classes
  • Routes

How to install

Please make sure that you have completely installed the boilerplate including and most importantly executed the migration from the boilerplate.

Execute below command to add this package in your project's composer dependencies.

composer require ramzyvirani/rateandreview "*"

Execute below command to publish views and config

php artisan vendor:publish --tag=RamzyVirani\RateAndReview\RateAndReviewServiceProvider

Execute migrations to create Reviews Table, Module, Menu, Permissions

php artisan migrate

PS: You will need to login with Super Admin to grant permissions to the admin and other roles.

How to Add Reviewable Options

Follow below points to add reviewable options in Admin Panel's Create/Edit forms and also use human readable instance type in Index Details Views.

  • Create a new Review Model in your application.
  • Extend it from RamzyVirani\RateAndReview\Models\Review.
  • Declare a public static property (array) named $INSTANCE_TYPE (E.g. in the original model).
    • Use FQDN of the polymorphic relations as the key and Human readable text as value
  • Change the fqdn in config/rateandreview.php

How to Extend Features

To Modify/Extend any functionality, Create a new class and extend it from the original Then, change the namespaces and fqdn in the config/rateandreview.php. Implement only those methods you want to modify.

  • RamzyVirani\RateAndReview\Criteria\ReviewCriteria
  • RamzyVirani\RateAndReview\DataTables\ReviewDataTable
  • RamzyVirani\RateAndReview\Models\Review
  • RamzyVirani\RateAndReview\Controllers\Admin\ReviewController
  • RamzyVirani\RateAndReview\Controllers\Api\ReviewAPIController
  • RamzyVirani\RateAndReview\Repositories\ReviewRepository

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固