PHP code example of ibrahimbougaoua / filament-rating-star

1. Go to this page and download the library: Download ibrahimbougaoua/filament-rating-star 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/ */

    

ibrahimbougaoua / filament-rating-star example snippets


return [
    'stars' => [
        'star1' => '1',
        'star2' => '2',
        'star3' => '3',
        'star4' => '4',
        'star5' => '5',
    ]
];

return $form
    ->schema([
        Section::make()
            ->schema([
                RatingStar::make('rating')
                ->label('Rating')
            ])
        ])

use IbrahimBougaoua\FilamentRatingStar\Columns\RatingStarColumn;

return $table
    ->columns([
        RatingStarColumn::make('rating')
    ])

use IbrahimBougaoua\FilamentRatingStar\Columns\RatingStarColumn;

return $table
    ->columns([
        RatingStarColumn::make('rating')
            ->size('sm')
    ])
bash
php artisan vendor:publish --tag="filament-rating-star-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-rating-star-config"
bash
php artisan vendor:publish --tag="filament-rating-star-views"