jxlwqq / star-rating
Star Rating extension for laravel-admin.
Installs: 6 108
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 3
Forks: 8
Open Issues: 1
Language:JavaScript
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2024-12-17 05:32:49 UTC
README
This is a laravel-admin
extension that integrates bootstrap-star-rating into laravel-admin
.
Screenshot
Installation
composer require jxlwqq/star-rating php artisan vendor:publish --tag=laravel-admin-star-rating
Update
composer require jxlwqq/star-rating php artisan vendor:publish --tag=laravel-admin-star-rating --force
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', 'language' => 'zh', ] ] ]
More configuration can be found in the Bootstrap Star Rating Document.
Usage
Use it in the form form:
$form->starRating('rate');
More resources
License
Licensed under The MIT License (MIT).