created_at/updated_at timestamps; custom timestamps may need adjustments.comments table with commentable_id (polymorphic) and commentable_type. Migration provided, but schema extensions (e.g., user_id, status) may be needed.throttle middleware).with() or query caching. Package lacks built-in eager loading prompts.composer require usamamuneerchaudhary/commentify
npm install tailwindcss @livewire/turbolinks
php artisan vendor:publish --tag=commentify-assets
php artisan vendor:publish --tag=commentify-config
php artisan migrate
commentable() relationship to models:
public function comments()
{
return $this->morphMany(Comment::class, 'commentable');
}
@livewire('commentify::comments', ['model' => $post], key($post->id))
resources/views/vendor/commentify.Comment model for business logic (e.g., notifications, analytics).Route::middleware(['auth', 'throttle:10,1'])->group(...);
tailwind.config.js or override utility classes.Comment::with('user')->latest()).wire:model.live changes may require package updates.mount(), hydrate).Comment::with('user', 'replies')->where(...).@livewire('commentify::comments', ['perPage' => 20]).Cache::remember() for comment lists.commentable_type, commentable_id, and created_at.How can I help you explore Laravel packages today?