Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/star-rating
Star Rating extension for laravel-admin
https://github.com/laravel-admin-extensions/star-rating
Last synced: 6 days ago
JSON representation
Star Rating extension for laravel-admin
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/star-rating
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-09-12T10:08:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-09T01:55:50.000Z (over 5 years ago)
- Last Synced: 2024-09-26T03:26:09.991Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 21
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - star-rating - 基于 BootStrapStarRating 的评分组件 (扩展包 / 字段类扩展包)
README
# Star Rating extension for laravel-admin
This is a `laravel-admin` extension that integrates [bootstrap-star-rating](https://github.com/kartik-v/bootstrap-star-rating) into `laravel-admin`.
## Screenshot
## Installation
```bash
composer require jxlwqq/star-rating
php artisan vendor:publish --tag=laravel-admin-star-rating
```## Update
```bash
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.
```php'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](http://plugins.krajee.com/star-rating).
## Usage
Use it in the form form:
```php
$form->starRating('rate');
```## More resources
[Awesome Laravel-admin](https://github.com/jxlwqq/awesome-laravel-admin)
## License
Licensed under [The MIT License (MIT)](LICENSE).