PHPackages                             takshak/adash-reviews - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. takshak/adash-reviews

ActiveLibrary[Admin Panels](/categories/admin)

takshak/adash-reviews
=====================

Reviews System for laravel

1.3.0(1y ago)0501MITBlade

Since Jul 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/takshaktiwari/adash-reviews)[ Packagist](https://packagist.org/packages/takshak/adash-reviews)[ RSS](/packages/takshak-adash-reviews/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (1)

Introduction
============

[](#introduction)

An extension to [takshaktiwari/adash](https://github.com/takshaktiwari/adash) form reviews system. This can be attached to any any model of your application and it's fully customizable.

Implementation
==============

[](#implementation)

Install the package with composer with given command and run the migrations `php artisan migrate`

```
composer require takshak/adash-review

```

Publish config file, views and components for further customization

```
php artisan vendor:publish --provider=Takshak\Areviews\AreviewsServiceProvider

```

Add component to admin sidebar, inside `ul` element for getting the links in admin sidebar

```

```

Run migration

```
php artisan migrate

```

Use `Takshak\Areviews\Traits\Models\ReviewModelTrait` to those model in which you want to implement the reviews system. This will help you to get the rating and reviews of the model. If the model is *$product*, rating of the model will be accessed by `$product->rating` and reviews by `$product->reviews`.

Now all setup is done, you can use other components according to your requirements.

Components
==========

[](#components)

Admin sidebar menu
------------------

[](#admin-sidebar-menu)

**&lt;x-areviews-areviews:admin-sidebar-links /&gt;:** Use this component to show the menu item in admin sidebar

Listing reviews
---------------

[](#listing-reviews)

**&lt;x-areviews-areviews:reviews ..... /&gt;:** This component will be useful to show the list of reviews. You can list your own reviews or default latest reviews with or without pagination. Default display style will be masonry using bootstrap rows and columns. You can further customize this component after publishing the assets. This will also include the reviews form and stats. There are some arguments with this component which may help you in achieving your desired format:

- **reviews:** Pass the collection of reviews which you have already digged out from the database. Only these reviews will be shown in the list.
- **model:** Pass the model instance for which you want to get the reviews. *Note:* Please check if you have already used `ReviewModelTrait` trait to the model. You will only see the reviews of the model when first `reviews` argument is not passed or is empty.
- **limit:** This argument will limit the reviews which we got from `reviews` or `model` argument. This will also act as count of per page in case of `pagination `. Default limit value is **10**.
- **column:** Use the column classes to control the number of columns in listing. Default value is `col-lg-4 col-md-6`. It will show 3 columns on large screen, 2 in medium screen and single column in small or mobile devices. You can pass your own column classes to control the columns. You can also define it globally in config file.
- **paginate:** Put the value `true` or `false` to get pagination feature on listing. This will only work if you are getting the reviews from `model` argument not from `reviews` argument.
- **addReview:** Add the review btn and review form, default is true
- **reviewStats:** Show reviews status or not
- **avgRating: / $countReviews:** Pass the average of rating and and total reviews count to show in the heading or other places. If not password, it will run database queries to get the avr rating and total reviews count if you have passed the **modal:** argument, otherwise it will return 0.

### Example:

[](#example)

Getting the latest 6 reviews from all models.

```

```

Getting all reviews of a product with pagination.

```

```

Getting reviews form
--------------------

[](#getting-reviews-form)

**&lt;x-areviews-areviews:review-form ..... /&gt;:** This component can used to store or edit the reviews. There are some arguments by which you can change the functionalities. Some fields can be removed just by changing fields array in config.

- **model:** Pass the model for which you want to associate the review.
- **review:** An existing review wil be passed to populate the fields. This can be used in case you are editing the review.
- **url:** Put the url on which you want to submit the form. By default form will be submitted to the default url. Only pass the value if you want to change the submission url.
- **method:** Default method is `POST`, if you want to change the form method you can pass `PUT` if you are editing the review.
- **redirect:** Form will be redirected back to the form after submission. If you want to goto some other page after form submission, you can pass the destination url here.
- **header:** If you want to show the form header of not, pass the text to change header text or leave it blank to remove it
- **avgRating: / $countReviews:** Pass the average of rating and and total reviews count to show in the heading or other places. If not password, it will run database queries to get the avr rating and total reviews count if you have passed the **modal:** argument, otherwise it will return 0.

**Example**

```
// for storing the review.

// for editing the review with other arguments

```

Show a single review
--------------------

[](#show-a-single-review)

**&lt;x-areviews-areviews:review-card ..... /&gt;:** This will display a review item, an argument named `review` will be passed with the review model which will be shown. eg. ``

**&lt;x-areviews-areviews:reviews-stats ..... /&gt;:** This will give you the stats of reviews and rating.

### Filter / Sorting Reviews by URL

[](#filter--sorting-reviews-by-url)

You can order the listing of reviews by passing the query parameter `reviews_order`. Valid values for this parameter will be: **latest, oldest, rating\_asc, rating\_desc**

You can get only specific rating by passing query parameter `reviews_rating` which will hold the value `1, 2, ..5`

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~35 days

Total

11

Last Release

526d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c20abfe33a88ffe808d63e38e4cbecc9c493458cff8b3d8338ccf846395f57a8?d=identicon)[takshaktiwari](/maintainers/takshaktiwari)

---

Top Contributors

[![takshaktiwari](https://avatars.githubusercontent.com/u/58802422?v=4)](https://github.com/takshaktiwari "takshaktiwari (22 commits)")[![ve-takshak](https://avatars.githubusercontent.com/u/197577695?v=4)](https://github.com/ve-takshak "ve-takshak (2 commits)")

---

Tags

laravelreviewsadash

### Embed Badge

![Health badge](/badges/takshak-adash-reviews/health.svg)

```
[![Health](https://phpackages.com/badges/takshak-adash-reviews/health.svg)](https://phpackages.com/packages/takshak-adash-reviews)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[ibrahim-bedir/filament-dynamic-settings-page

272.0k1](/packages/ibrahim-bedir-filament-dynamic-settings-page)[lara-zeus/tartarus

simple multi tenants

112.6k](/packages/lara-zeus-tartarus)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
