This is a laravel-admin
extension that integrates bootstrap-star-rating into laravel-admin
.
composer require jxlwqq/star-rating
php artisan vendor:publish --tag=laravel-admin-star-rating
composer require jxlwqq/star-rating
php artisan vendor:publish --tag=laravel-admin-star-rating --force
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.
Use it in the form form:
$form->starRating('rate');
Licensed under The MIT License (MIT).