Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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).