1. Go to this page and download the library: Download mokhosh/filament-rating library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mokhosh / filament-rating example snippets
use Mokhosh\FilamentRating\Components\Rating;
$form->schema([
Rating::make(),
]);
use Mokhosh\FilamentRating\Columns\RatingColumn;
$table->schema([
RatingColumn::make(),
]);
use Mokhosh\FilamentRating\Entries\RatingEntry;
$infolist->schema([
RatingEntry::make(),
]);
use Mokhosh\FilamentRating\RatingTheme;
$form->schema([
Rating::make()->theme(RatingTheme::Simple),
]);