Updated to use configurable user_model
Minor fixes
The main comment form is rendered inside the Comments Livewire component, but the getUsers and selectUser methods existed only on the Comment component. Typing @ in the main form triggered this.$wire.getUsers(searchTerm), so $wire targeted the Comments component, which lacked those methods.
Closes: https://github.com/usamamuneerchaudhary/commentify/issues/31
Added publishable migrations closes: https://github.com/usamamuneerchaudhary/commentify/issues/32
Updated for Livewire 4
Added option to require manual approval for comments before they appear on your frontend.
Enable comment approval in config/commentify.php:
'require_approval' => true,
New comments are created as unapproved and hidden from the frontend
Approve comments via Filament admin panel:
Run the migration to add the is_approved column:
php artisan migrate
See the README and FILAMENT_SETUP.md for complete documentation.
config/commentify.phpenable_sorting config optionmostLiked(), mostReplied())enable_reporting config optionenable_emoji_picker config optionlight: Always use light themedark: Always use dark themeauto: Automatically detect system preference (default)prefers-color-scheme media query for auto mode.dark class with dark: utilitiesdata-bs-theme="dark" attributetheme config optionresources/views/tailwind/ and resources/views/bootstrap/css_framework config optioncss_framework config option ('tailwind' or 'bootstrap')notification_channels configNOTIFICATIONS_SETUP.mdlikes relationship loadingchildren and user relationshipscss_framework: Choose between 'tailwind' or 'bootstrap' (default: 'tailwind')default_sort: Set default comment sort order (default: 'newest')enable_sorting: Enable/disable sorting dropdown (default: true)enable_reporting: Enable/disable comment reporting (default: true)report_reasons: Array of predefined report reasons (default: ['spam', 'inappropriate', 'offensive', 'other'])theme: Theme mode - 'light', 'dark', or 'auto' (default: 'auto')enable_emoji_picker: Enable/disable emoji picker (default: true)enable_notifications: Enable/disable notifications (default: false)notification_channels: Array of notification channels (default: ['database'])comment_reports TableFILAMENT_SETUP.md: Guide for Filament integrationNOTIFICATIONS_SETUP.md: Guide for notification setuptest_ prefix (no deprecated [@test](https://github.com/test) annotations)config/commentify.phpcomment_reports table will be createdcss_framework to 'tailwind' or 'bootstrap'php artisan vendor:publish --tag="commentify-tailwind-views"
# OR
php artisan vendor:publish --tag="commentify-bootstrap-views"
Fixed Tests
<flux:button> for a modern, accessible UI..env.comment_banned_until column and HasCommentBan trait.If you have suggestions or find issues, please open an issue or PR!
Added livewire v3 support
Minor fixes and console error handling
Possible install fixes
First Release
How can I help you explore Laravel packages today?