Skip to main content
Coming Soon…

Model

The model used is Shopper\Core\Models\Review.
NameTypeRequiredNotes
idautoincauto
approvedbooleannoDefault false
is_recommendedbooleannoDefault false
titlestringnoThe title of the review.
contentlongTextauthor_type noThe content of the review.
ratingstringyesThe rating of the review
reviewrateablemorphsyesrelation generate reviewrateable_id and reviewrateable_type columns
authormorphsyesrelation generate author_id and author_type columns

Components

By default, review Livewire components are not published. To customize components, you must publish them.
php artisan shopper:component:publish review
This command will publish all Livewire components used for review management (from pages to form components). Once you’ve published the component, you can find it in the review.php locate in the config/shopper/components folder.
use Shopper\Livewire;

return [
    'pages' => [
        'review-index' => Livewire\Pages\Reviews\Index::class,
    ],
    
    'components' => [
        'slide-overs.review-detail' => Livewire\SlideOvers\ReviewDetail::class,
    ],
];