Git Product home page Git Product logo

commentify's People

Contributors

usamamuneerchaudhary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

commentify's Issues

detectAtSymbol needs fixing

Not sure if it directly affects the behavior, but I see console errors for detectAtSymbol method.

Two different errors:

Screenshot 2023-04-23 at 10 24 35

Screenshot 2023-04-23 at 10 25 33

If there are no comments, then this method is never loaded.
If there is a comment, then there's something with selectionStart

Mention not working

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

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 ?

Read only mode ?

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 ?

Reload comments in Filament Modal

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!

Attempt to read property "user" on null on replies

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

livewire foreach need key.

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() }}'>

Call to a member function comments() on null

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(),

install error

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.