Star Rating extension for laravel-admin
Clone or download
Latest commit faec3b0 Oct 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources First commit Sep 12, 2018
src Fix Sep 12, 2018
.gitignore First commit Sep 12, 2018
LICENSE First commit Sep 12, 2018
README.md Update README.md Oct 15, 2018
composer.json First commit Sep 12, 2018

README.md

Star Rating extension for laravel-admin

This is a laravel-admin extension that integrates bootstrap-star-rating into laravel-admin.

Screenshot

Installation

First, install dependencies:

composer require jxlwqq/star-rating

Then, publish the resource directory:

php artisan vendor:publish --tag=laravel-admin-star-rating

Configuration

In the extensions section of the config/admin.php file, add some configuration that belongs to this extension.


'extensions' => [
 
     'star-rating' => [
     
         // set to false if you want to disable this extension
         'enable' => true,
         
         // configuration
         'config' => [
             'min' => 1, 'max' => 5, 'step' => 1, 'size' => 'xs'
         ]
     ]
 ]

More configuration can be found in the Bootstrap Star Rating Document.

Usage

Use it in the form form:

$form->starRating('rate');

More resources

Awesome Laravel-admin

License

Licensed under The MIT License (MIT).