Git Product home page Git Product logo

Comments (23)

aqiltariq avatar aqiltariq commented on July 3, 2024

this is my comment.php in config folder
image
i m using it here in my model
image
my public folder
image
i m using it here in blade file
image
but this error is coming can u please help me
image
which is of react.js. I do not know react.js can you please help me to run this package

from comments.

mabasic avatar mabasic commented on July 3, 2024

Did you add use Laravelista\Comments\Comments\Traits\Comments; to your App\User model?

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

yes sir u can see in the model pic
https://cloud.githubusercontent.com/assets/8025359/21066105/94d12ae8-be85-11e6-9bdc-1fd4bf393a2c.png

from comments.

mabasic avatar mabasic commented on July 3, 2024

In the pic I can see that you have added use Comments to the App\Post model, not App\User model. Can you check that you have use Comments in your User model and your Post model?

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

Sir my comment.php is this
image
my auth.php is this
image
my admin.php is this
image
Still getting same error
image

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

Sir can you please let me know that i have to add anything related to react.js file

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

@mabasic is there anything related to react,js thing to be installed in my project?

from comments.

mabasic avatar mabasic commented on July 3, 2024

There is nothing to change related to react.js. Can you click on this marked in the image
096c766a-be8a-11e6-978f-7fc4317d2ee1_ink_li

and let me know what is says

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

When i click on this marked by you
image
i got this error
image

from comments.

mabasic avatar mabasic commented on July 3, 2024

Oh, I see. Which version of PHP are you using? This package works with version >= 7.0

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

i am using php 5.5.4

from comments.

mabasic avatar mabasic commented on July 3, 2024

That is why this package is not working for you. I will later add a dependency in composer.json to require minimum PHP 7.0.

If you update to version 7.0 it will work.

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

Can you please add this thing in documentation or in read.md as it is new project and very simple to use

from comments.

mabasic avatar mabasic commented on July 3, 2024

You can follow this lesson to update your PHP installation on Windows Prepare for modern PHP applications

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

I will check nd inform you

from comments.

mabasic avatar mabasic commented on July 3, 2024

Ok, I will.

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

Sir there is csrf token mismatch error so do we to comment out this
image
its now working when we comment the middleware

from comments.

mabasic avatar mabasic commented on July 3, 2024

Don't do that. You need to add this to app/Http/Middleware/VerifyCsrfToken.php see here:

protected $except = [
    'api/*'
];

I will add this to the readme.

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

is there a facility of this thing in this plugin
hide old comments i.e sow recent comnents
image

from comments.

mabasic avatar mabasic commented on July 3, 2024

You mean this "View old comments" button ?

from comments.

aqiltariq avatar aqiltariq commented on July 3, 2024

yes

from comments.

mabasic avatar mabasic commented on July 3, 2024

No, that does not come with this package. It is a simple Bootstrap collapse component in which I display "old" comments from when disqus was installed on this site.

You can use the collapse from bootstrap to display comments inside it, so that the user has to first click on the button "view comments" and then display the comments-react view inside it.

from comments.

mabasic avatar mabasic commented on July 3, 2024

Solved this issue with release 1.1.0 https://github.com/laravelista/comments/releases/tag/1.1.0

from comments.

Related Issues (20)

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.