Laravel Comments
ฝัง
- เผยแพร่เมื่อ 22 ก.ย. 2024
- usefullaravelpa...
We take a look at adding comments to your Laravel app using this package. We also take a look at how to customize it and create a starting point for a Vue component that allows you to post comments using an AJAX request (without a page refresh).
Package repo: github.com/lar...
Example repo: github.com/dre...
LINKS
My courses: codewithdre.com
Sign up for my newsletter: andremadarang.c...
My website: andremadarang.com
Twitter: / drehimself
GitHub: github.com/dreh...
CodePen: codepen.io/dreh...
THANKS ALOT !!!!!am a Studenet nd I USED THIS IN MY FINAL YEAR PROJECT !! KEEP IT BRO , REALLY APPRECIATE THIS.. make more videos like this. we would love to see some more plugins that make our life more easier :)
Awesome guide to setup comments in minutes, thanks
You are the best! Thanks for this desired lesson!
In fact, Laravel did not find Route('Comments.store')..
So I had to add a routees.php file to the manual.
And comments earned!
Thanks a lot!
thank you for your nice tutorial.
please, make a tutorial for like - dislike system in laravel!
Hi André, thanks for the screencast, it helps many people.
Just a quick note, if the user tries to apply this comment to an existing project with other models he will receive a variable declaration error within the blade, so I suggest that the user apply it as follows: @comments(['model' => App\ModelName::first()])
Thank you so much, you save my day!
@@louisalee4186 nested
nested
mostafaamine briere
i have this problem when install this package in my project laravel 7
"Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires laravelista/comments ^4.5 -> satisfiable by laravelista/comments[4.5.0].
- laravelista/comments 4.5.0 requires illuminate/database ^8.0 -> found illuminate/database[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require."
can you help me with this?
This is like magic, thx andre.
Thank you Andre! Coming from Rails, Laravel seems to have a lot of useful packages too.
Thanks for watching! There are a TON of great packages for Laravel. Part of the reason why Laravel is so great to use.
@@drehimself nicely explained
Andre, I emailed to the package author about this tutorial (As he asked to let him know) and he replied that he will add this to his readme file.
Awesome, thanks!
have you tested it in lara 6 it's not working in laravel 6
Thanks so much for the tutorial Andre. I have a lite issue I need help with. The reply and edit features don't work for me. Doesn't even point to a route on hover like the delete button
Please I need help
Always well done
Thank you once again
Thanks for watching!
How can I implement it using tailwind? Pop Up box doesn't appear when editing
Thank you! Andre Madarang
good lecture
thank you! Please DONT STOP!!!
Thanks Andre
This is a great package, but it's a good practice, if you need it for the first time, implement it yourself, you are going to learn how polymorphic relationships work
Agree! Definitely should understand how polymorphic relationships work before using packages like this.
If we wanna comment with an image and not as a text, Pls how do we go about that?
Nice package. I'll try install and use this.
Please how do I get gravatar to display my image? I used a real e-mail but it still doesn't work
Problem 1
- laravelista/comments[4.4.0, ..., 4.4.1] require illuminate/database ^8.0 -> found illuminate/database[v8.0.0, ..., 8.x-dev] but it conflicts with another require.
- Root composer.json requires laravelista/comments ^4.4 -> satisfiable by laravelista/comments[4.4.0, 4.4.1].
what is that someone explain please..
I have the same Problem @Andre Plz help us.
Very good Andre.
thanks for this tutorial... but how to customize this comment system?
hiii great video,but actually I want to how to comments with with API and using json files..please help me..
how to apply if i have 3 parameters?
superb i loved this your video sir. so nice
Great video!
Which route you can use as admin to approve or un-approve comments.?
Man... you rock! thank you!
Also laravel rocks!
Hi Andre, thank you so much for your all tutorials Especially the E-commerce one, I am using this comment package on my website(Which is a School Management System) so I have to implement a feature that a student can comment on a school assignment only if the teacher had commented already. It will be a great help if you give me direction on how to do that.
Great tutorial thanks!, but why a guest user can't reply? if possible can you tell me how to enable this.
Nice, Glad to see this (saves lot of time)
Hi, how can you change the variable name? I kinda used my own database which doesn't have a "Name" field but has a First and Lastname field
The comments are being saved into the database but doesn't show on the view. Any solution, please? I'm using on laravel 6
Please can you do a comment package development tutorial like the one you have here. Thanks in advance
most packages are conflicting..Canvas and laravista comment having issues with jetstream
Thanks alote man it was helpful for me Because I need it to use it in my news site project
Thanks ❤
Cool video, please make a video about product features
Another great video. Can you also create a sample store with inventory and sales order? Is there a package for that also?
the comments aren't working anymore. "Call to a member function count() on null (View: C:\xampp\htdocs\cebeco2
esources\views\vendor\comments\components\comments.blade.php)"
okay , found the problem.
@@justinlemuel12 what was the problem?
nice video
@can('reply-to-comment', $comment) where this checked and how can use this package for my custom guard?For example auth('member') guard.
When I type in and create a comment it throws a 403 | unauthorised error? Can anyone help ?
sir reply edit and delete not working 403
This action is unauthorized.
great package! can we configure it to work with wink blog package?
How could you get your login picture when comment ?
It will be very helpful to have a tutorial how to display the latest comments somewhere and how to fetch all comments by a specific user
all you need to do is call Comment::where('comenter_id',userid here)-get(); then use , or call from User model i dont know need to create any extra relation between those
Sir, Please help me. i am very tired for my work because i am not good programmer and use member guard.For example auth('member') guard. i am trying problem solution form 3 day but not success. please help me sir.
thanks man you are vary halpful
have u email please i have problem not working always Undefined variable: post because i used other method like @{{post.title}}
Thank you for your tutorial. How to costomize the view in order to display the messages in French?
Thank you
I think the quickest way would be to just edit the comment.php file in vendor\laravelista\comments
esources\lang\en\comments.php or create a new file and point to it in every needed line
@@bootdev6558 Thank you. I created a new comment.php file with the messages in French, and it works.
Kindly also make video on webrtc laravel package
how i get the user in the reply?
how do you find package like this Andre? they are so cool
You can go on github and search "Laravel", then sort by the number of stars. There's also an "Awesome Laravel" repo that lists out a lot of great packages. Laravel News also features a ton of great packages.
Undefined variable: post
in postscontroller i do function show etc....
and in web => ''posts/{post}'
why always Undefined variable: post???
you need setup your class model, example: @comments(['model' => App\Book::find($id)])
Are you solved the problem please help, thank you.
I'm getting error 404 when submitting a comment, anyone else with this problem?
Cool !
come on man, you are just teaching yourself
need that templete sublime stuff like yours
Great, but could you make something like that from scratch?Really it would be very helpful for beginners.
Yes! After my course is done I plan to have some content around creating packages. Might use this one as an example.
Please any update on this
Is not working for me the installation has missing some files.
Undefined property: stdClass::$comments (View: C:\xampp\htdocs\All Lravel project\swe332
esources\views\vendor\comments\components\comments.blade.php)
{ $comments = $model->comments; [in this line get error] }
Is it real time?
geart
test of api
Too fast in the explanation men.