Return to homepage

Comments

Brandon

Pagination doesn't work properly with replies. In my app, most of the comments end up being replies, so effectively there is no working pagination. Any ideas?

  • 0
Jaan

Hello! can anybody help me? How to resolve this issue when we have error to change to red. My vs Code show me error class="shadow-sm block w-full focus:ring-blue-500 focus:border-blue-500 border-gray-300 rounded-md @error('editState.body') border-red-500 @enderror"

  • 0
MinSulayman

Instead of [ $this->goToPage(1); ], there's a [ $this->resetPage(); ] to reset pagination.

  • 2
MinSulayman
1@auth
2 {{-- stuff for authenticated users --}}
3@else
4 {{-- stuff for guest users --}}
5@endauth
  • 1
Alex

If you wanted to display the count of the number of replies a post or articles has, how would you go about it, I have used the count() function but it includes all the replies as well, I only need the count to be on all the parent replies

  • 2
Matthew

Regarding episode 16: I had a problem with the MarkDownServiceProvider because the "createCommonMarkEnvironment" method appears to be deprecated. But Laravel 8 has a markdown helper, so I simply changed the method on the model to:

1public function markdownBody()
2{
3 return Str::of($this->body)->markdown([
4 'html_input' => 'strip',
5 ]);
6}

And it seems to work pretty well (though I think Tailwind is interfering with some formats).

  • 5
cardo

I tried to implement this on like 3.0, is it the same process to make the comments and replies realtime?

  • 0
KPK

This video is not downloading!

  • 0
Vasyl

Hi Alex. There is an error when trying to download part 20

  • 3
nestor

Alex, do you think it is posible to build a chat app with Livewire somewhat similar to whatsapp.web?

  • 2
Michael

Any reason you are not being consistent in the use of policies here?

Something like authorize(“canReply”, $comment)

  • 0
Amandeep

Refresh is not working for child (reply) comment.. Any Solution?

  • 0
Abdelouahab

hi ther is an issue when i want to download this lessons please help me

  • 3
Adrian

I have the same issue

  • 0
Bojan

Hi There, what is the benefit of setting up comments like you did with parent_id in the same table vs. having a separate table for all the replies?

Best Regards

  • 0
Dre

It saves time and it's less codes

  • 0
ossama

Instead of $this->goToPage(1) we can use the alternative method $this->resetPage() and it do the same job.

  • 9