usamamuneerchaudhary / commentify Goto Github PK
View Code? Open in Web Editor NEWEasy Laravel Livewire Comments with TailwindCSS UI
License: MIT License
Easy Laravel Livewire Comments with TailwindCSS UI
License: MIT License
Can you develop this package to support Livewire v3?
Hi, first of all thank you for amazing package. we used in our little filamentphp project. all is good, except that we could not get mention features to works. please advise. thanks
how can i implement file upload for the comments,
i thought about creating a custom model and extending comment model , and add another field in db called file for ex and publish the views and then add a button to add a file or something , would this work ?
Hi I am using your wonderfull work in a project of mine. And I would like to know if a read only mode for the chat is possible ?
Hi!
I am using this package inside a Filament Modal box, and it works only for the first item loaded, then on every other modal it shows the results for the first one opened even though I change the model to the new item. Is there something I am missing somewhere maybe? Can you please help/any ideas?
Thank you in advance!
Is there a way to disable the dark mode ?
class="mr-2 w-6 h-6 rounded-full"
src="{{$comment->user->avatar()}}"
alt="{{$comment->user->name}}">{{Str::ucfirst($comment->user->name)}}</p>
<p class="text-sm text-gray-600 dark:text-gray-400">
<time pubdate datetime="{{$comment->presenter()->relativeCreatedAt()}}"
title="{{$comment->presenter()->relativeCreatedAt()}}">
{{$comment->presenter()->relativeCreatedAt()}}
</time>
this throws the following ex Attempt to read property "user" on null on replies
i've @dd($comment->user->name) its its coming back with the value so have no idea whats happening here
Hello. I did everything exactly as in the description, but when I enter text, I get the error Uncaught ReferenceError: detectAtSymbol is not defined at HTMLTextAreaElement.oninput (18042023?_token=dUaEICCsSudBH0gvbhUyYUedirEjlgXg5kndG9OO:220:10). When the button is pressed, the page restarts, and the comment is not added
Thanks for good package. This is what I was looking for for long time.
And It is just teasing.
in resources/views/livewire/partials/dropdowns/users.blade.php
<li wire:click="selectUser('{{ $user->name }}')">
With my experiences, it would be better to put :key
<li wire:click="selectUser('{{ $user->name }}')" wire:key='{{ $user->id() }}'>
I have faced with issue "Call to a member function comments() on null" ?
in blade.php
<livewire:comments :model="$event"/>
event model:
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use Usamamuneerchaudhary\Commentify\Traits\Commentable;
class Event extends Model implements HasMedia
{
use HasFactory, InteractsWithMedia, Commentable;
app.php:
'providers' => ServiceProvider::defaultProviders()->merge([
/*
* Package Service Providers...
*/
/*
* Application Service Providers...
*/
Usamamuneerchaudhary\Commentify\Providers\CommentifyServiceProvider::class,
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Livewire\LivewireServiceProvider::class,
])->toArray(),
log info :
Problem 1
- Root composer.json requires usamamuneerchaudhary/commentify ^1.0 -> satisfiable by usamamuneerchaudhary/commentify[1.0].
- usamamuneerchaudhary/commentify 1.0 requires illuminate/database >=v10.1.4 -> found illuminate/database[dev-master, v10.1.4, ..., 10.x-dev, 11.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require usamamuneerchaudhary/commentify:*" to figure out if any version is installable, or "composer require usamamuneerchaudhary/commentify:^2.1" if you know which you need.
problem :
Do I also need to install the illuminate/database package?
Possible to disable nested comments?
When commented submitted I can't localize messages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.