Laravel Comments Package - Spatie

A passionate full-stack developer from @ePlus.DEV
Search for a command to run...

A passionate full-stack developer from @ePlus.DEV
No comments yet. Be the first to comment.
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling.
Introducing the brand new Log Viewer for Laravel. Open-source with tons of features, fast and beautiful. What more do you need? Over the past month, I have been working on an improved and faster version of the log viewer that I released years ago. ...
Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary OpenAI giảm mạnh giá GPT-5.6 Luna và Terra, đồng thời chuyển Priority

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary GitHub Copilot code review đã hỗ trợ chính thức Agent Skills và MCP s

Overview Vibe coding is an emerging software development practice that uses artificial intelligence (AI) to generate functional code from natural language prompts, accelerating development, and making

Overview This lab demonstrates how Gemini can interpret what is in an image and provide a description quickly. During the exercise, you will provide the following image as input and ask Gemini is: "Wh

Overview In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to

Laravel Comments is a premium comments package for applications using PHP 8.1+ and Laravel 9+ by Spatie. Using this package, you can create and associate comments with Eloquent models.
At the time of launch, Laravel Comments' main features include:
A beautiful Livewire component to display comments
use Illuminate\Database\Eloquent\Model;
use Spatie\Comments\Models\Concerns\HasComments;
class Post extends Model
{
use HasComments;
}
Which then enables you to manage comments and reactions on a model:
$post->comment("I've got a feeling");
$comment->react('😍');
While the above is a barebones example, the package also comes with a fully baked Laravel Livewire component, which also supports one level of nested comments:

Note that you must pay for a premium license to use this package. To get started, check out the Laravel Comments documentation.
Source: