Star Rating
Star rating field & column.
Author:
Ibrahim Bougaoua
Documentation
Star rating field & Star column.
#Support us
#Installation
You can install the package via composer:
composer require ibrahimbougaoua/filament-rating-star
You can publish the config file with:
php artisan vendor:publish --tag="filament-rating-star-config"
This is the contents of the published config file:
return [
'stars' => [
'star1' => '1',
'star2' => '2',
'star3' => '3',
'star4' => '4',
'star5' => '5',
]
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-rating-star-views"
#Usage
With Form :
use IbrahimBougaoua\FilamentRatingStar\Forms\Components\RatingStar;
return $form
->schema([
Section::make()
->schema([
RatingStar::make('rating')
->label('Rating')
])
])
With Table :
use IbrahimBougaoua\FilamentRatingStar\Columns\Components\RatingStar;
return $table
->columns([
RatingStar::make('rating')
])
With Infolist :
use IbrahimBougaoua\FilamentRatingStar\Entries\Components\RatingStar;
return $infolist
->schema([
RatingStar::make('rating')
])
You can use the size method to customize the size of the stars:
use IbrahimBougaoua\FilamentRatingStar\Columns\Components\RatingStar;
return $table
->columns([
RatingStar::make('rating')
->size('sm')
])
Supported sizes are xs, sm, md, lg and xl.
#Testing
composer test
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
From the same author
Managing dynamic content and widgets
Customizable solution for managing dynamic content in Laravel projects using FilamentPHP.
Author:
Ibrahim Bougaoua
Sort Order
Transform the sorting order of any table effortlessly.
Author:
Ibrahim Bougaoua
Filasortable
Filasortable reorderable drag-and-drop.
Author:
Ibrahim Bougaoua
Radio Button Image
Radio button image is all about replacing traditional radio buttons with images.
Author:
Ibrahim Bougaoua
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight/Raycast like Command Palette to your Filament Panel.
Dennis Koch

