SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Docs Laravel-comments Livewire-components Using the components

Other versions for crawler v2 v1
    • Introduction
    • Getting a license
    • Requirements
    • Installation & setup
    • Questions and issues
    • Changelog
    • Upgrade guide
    • About us

    Basic usage

    • Working with comments
    • Working with reactions
    • Transforming comments
    • Sending notifications
    • Approving comments
    • Listing comments in Laravel Nova

    Livewire components

    • Introduction
    • Installation
    • Using the components
    • Taking care of authorization
    • Customising the views
    • Mentions
    • Miscellaneous options
    • Using Markdown

Using the components

To add comments for a particular Eloquent model, just pass that model to the model prop of the comments component.

<livewire:comments :model="$blogPostModel" />
Installation
Taking care of authorization
Help us improve this page
Testing Laravel

Learn how to write quality tests in Pest and PHPUnit in our video course

Help us improve this page
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead

    Enter a search term to find results in the documentation.