1@auth2 {{-- stuff for authenticated users --}}3@else4 {{-- stuff for guest users --}}5@endauth
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
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).
I tried to implement this on like 3.0, is it the same process to make the comments and replies realtime?
This video is not downloading!
Hi Alex. There is an error when trying to download part 20
Alex, do you think it is posible to build a chat app with Livewire somewhat similar to whatsapp.web?
Any reason you are not being consistent in the use of policies here?
Something like authorize(“canReply”, $comment)
Refresh is not working for child (reply) comment.. Any Solution?
hi ther is an issue when i want to download this lessons please help me
I have the same issue
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
It saves time and it's less codes
Instead of $this->goToPage(1)
we can use the alternative method $this->resetPage()
and it do the same job.
Instead of [
$this->goToPage(1);
], there's a [$this->resetPage();
] to reset pagination.