diff --git a/200.html b/200.html index 169a5d1..c71ae18 100644 --- a/200.html +++ b/200.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/404.html b/404.html index 11a171b..6ce089f 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/_payload.json b/_payload.json index 66e5c76..c55aec5 100644 --- a/_payload.json +++ b/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":260},["ShallowReactive",2],{"navigation_docs":3,"landing":75},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":77,"body":78,"description":77,"extension":250,"meta":251,"navigation":252,"path":253,"seo":254,"stem":258,"__hash__":259},"landing\u002Findex.md","",{"type":79,"value":80,"toc":247},"minimark",[81,122,148,208],[82,83,84,88,107],"u-page-hero",{},[85,86,87],"template",{"v-slot:title":77},"Comments",[85,89,90,94,97],{"v-slot:description":77},[91,92,93],"p",{},"A full-featured commenting system for Filament panels with threaded replies, @mentions, emoji reactions, and real-time updates.",[91,95,96],{},"Drop-in integration with any Filament resource.",[98,99,102,106],"callout",{"color":100,"icon":101},"amber","i-lucide-triangle-alert",[103,104,105],"strong",{},"Alpha Software"," — Breaking changes may occur between releases. Not recommended for production use.",[85,108,109,116],{"v-slot:links":77},[110,111,115],"u-button",{"color":112,"size":113,"to":12,"trailing-icon":114},"neutral","xl","i-lucide-arrow-right","Get started",[110,117,121],{"color":112,"size":113,"to":118,"icon":119,"variant":120},"https:\u002F\u002Fgithub.com\u002Frelaticle\u002Fcomments","simple-icons:github","outline","GitHub",[123,124,129,130],"div",{"className":125},[126,127,128],"text-center","max-w-5xl","mx-auto","\n ",[123,131,137,138,129],{"className":132},[133,134,135,136],"aspect-video","rounded-lg","shadow-lg","overflow-hidden","\n ",[139,140],"img",{"src":141,"alt":142,"className":143},"\u002Fpreview.png","Comments - threaded discussions in Filament",[144,145,146,147],"w-full","h-full","object-cover","object-top",[149,150,151,154],"u-page-section",{},[85,152,153],{"v-slot:title":77},"Why choose Comments?",[85,155,156,166,174,182,190,199],{"v-slot:features":77},[157,158,160,163],"u-page-feature",{"icon":159},"i-lucide-messages-square",[85,161,162],{"v-slot:title":77},"Threaded Replies",[85,164,165],{"v-slot:description":77},"Nested comment threads with configurable depth limits. Users can reply to specific comments creating organized discussions.",[157,167,168,171],{"icon":39},[85,169,170],{"v-slot:title":77},"@Mentions",[85,172,173],{"v-slot:description":77},"Autocomplete user mentions with a customizable resolver interface. Dispatches events for notification handling.",[157,175,176,179],{"icon":44},[85,177,178],{"v-slot:title":77},"Emoji Reactions",[85,180,181],{"v-slot:description":77},"Six built-in emoji reactions with a configurable set. Users can react to comments with a single click.",[157,183,184,187],{"icon":49},[85,185,186],{"v-slot:title":77},"File Attachments",[85,188,189],{"v-slot:description":77},"Upload images and documents to comments with configurable storage, size limits, and MIME type validation.",[157,191,193,196],{"icon":192},"i-lucide-radio",[85,194,195],{"v-slot:title":77},"Real-time Updates",[85,197,198],{"v-slot:description":77},"Optional broadcasting via private channels with automatic polling fallback. Comments stay in sync across sessions.",[157,200,202,205],{"icon":201},"i-lucide-puzzle",[85,203,204],{"v-slot:title":77},"Full Filament Integration",[85,206,207],{"v-slot:description":77},"Three integration patterns: slide-over action, table row action, and infolist entry. Works with any Filament resource.",[149,209,210,213,216],{},[85,211,212],{"v-slot:title":77},"Our Ecosystem",[85,214,215],{"v-slot:description":77},"Extend your Laravel applications with our ecosystem of complementary tools",[217,218,219,235],"card-group",{},[220,221,226,232],"card",{"icon":222,"target":223,"title":224,"to":225},"i-simple-icons-laravel","_blank","FilaForms","https:\u002F\u002Ffilaforms.app",[139,227],{"alt":224,"className":228,"src":231},[229,134,144,230],"mb-4","pointer-events-none","https:\u002F\u002Ffilaforms.app\u002Fimg\u002Fog-image.png",[91,233,234],{},"Visual form builder for all your public-facing forms.",[220,236,240,244],{"icon":237,"target":223,"title":238,"to":239},"i-lucide-sliders","Custom Fields","https:\u002F\u002Frelaticle.github.io\u002Fcustom-fields",[139,241],{"alt":238,"className":242,"src":243},[229,134,144,230],"https:\u002F\u002Frelaticle.github.io\u002Fcustom-fields\u002Fog-image.png",[91,245,246],{},"Let users add custom fields to any model without code changes.",{"title":77,"searchDepth":248,"depth":248,"links":249},2,[],"md",{},true,"\u002F",{"title":255,"description":256,"ogImage":257},"Filament Comments System","A full-featured commenting system for Filament panels with threaded replies, @mentions, emoji reactions, file attachments, and real-time updates.","\u002Fog-image.png","index","iUGuNPlK2U8WboINEbJQCUSg_fR7lh9h82bJxKY_1vs",1774613432889] \ No newline at end of file +[{"data":1,"prerenderedAt":260},["ShallowReactive",2],{"navigation_docs":3,"landing":75},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":77,"body":78,"description":77,"extension":250,"meta":251,"navigation":252,"path":253,"seo":254,"stem":258,"__hash__":259},"landing\u002Findex.md","",{"type":79,"value":80,"toc":247},"minimark",[81,122,148,208],[82,83,84,88,107],"u-page-hero",{},[85,86,87],"template",{"v-slot:title":77},"Comments",[85,89,90,94,97],{"v-slot:description":77},[91,92,93],"p",{},"A full-featured commenting system for Filament panels with threaded replies, @mentions, emoji reactions, and real-time updates.",[91,95,96],{},"Drop-in integration with any Filament resource.",[98,99,102,106],"callout",{"color":100,"icon":101},"amber","i-lucide-triangle-alert",[103,104,105],"strong",{},"Alpha Software"," — Breaking changes may occur between releases. Not recommended for production use.",[85,108,109,116],{"v-slot:links":77},[110,111,115],"u-button",{"color":112,"size":113,"to":12,"trailing-icon":114},"neutral","xl","i-lucide-arrow-right","Get started",[110,117,121],{"color":112,"size":113,"to":118,"icon":119,"variant":120},"https:\u002F\u002Fgithub.com\u002Frelaticle\u002Fcomments","simple-icons:github","outline","GitHub",[123,124,129,130],"div",{"className":125},[126,127,128],"text-center","max-w-5xl","mx-auto","\n ",[123,131,137,138,129],{"className":132},[133,134,135,136],"aspect-video","rounded-lg","shadow-lg","overflow-hidden","\n ",[139,140],"img",{"src":141,"alt":142,"className":143},"\u002Fpreview.png","Comments - threaded discussions in Filament",[144,145,146,147],"w-full","h-full","object-cover","object-top",[149,150,151,154],"u-page-section",{},[85,152,153],{"v-slot:title":77},"Why choose Comments?",[85,155,156,166,174,182,190,199],{"v-slot:features":77},[157,158,160,163],"u-page-feature",{"icon":159},"i-lucide-messages-square",[85,161,162],{"v-slot:title":77},"Threaded Replies",[85,164,165],{"v-slot:description":77},"Nested comment threads with configurable depth limits. Users can reply to specific comments creating organized discussions.",[157,167,168,171],{"icon":39},[85,169,170],{"v-slot:title":77},"@Mentions",[85,172,173],{"v-slot:description":77},"Autocomplete user mentions with a customizable resolver interface. Dispatches events for notification handling.",[157,175,176,179],{"icon":44},[85,177,178],{"v-slot:title":77},"Emoji Reactions",[85,180,181],{"v-slot:description":77},"Six built-in emoji reactions with a configurable set. Users can react to comments with a single click.",[157,183,184,187],{"icon":49},[85,185,186],{"v-slot:title":77},"File Attachments",[85,188,189],{"v-slot:description":77},"Upload images and documents to comments with configurable storage, size limits, and MIME type validation.",[157,191,193,196],{"icon":192},"i-lucide-radio",[85,194,195],{"v-slot:title":77},"Real-time Updates",[85,197,198],{"v-slot:description":77},"Optional broadcasting via private channels with automatic polling fallback. Comments stay in sync across sessions.",[157,200,202,205],{"icon":201},"i-lucide-puzzle",[85,203,204],{"v-slot:title":77},"Full Filament Integration",[85,206,207],{"v-slot:description":77},"Three integration patterns: slide-over action, table row action, and infolist entry. Works with any Filament resource.",[149,209,210,213,216],{},[85,211,212],{"v-slot:title":77},"Our Ecosystem",[85,214,215],{"v-slot:description":77},"Extend your Laravel applications with our ecosystem of complementary tools",[217,218,219,235],"card-group",{},[220,221,226,232],"card",{"icon":222,"target":223,"title":224,"to":225},"i-simple-icons-laravel","_blank","FilaForms","https:\u002F\u002Ffilaforms.app",[139,227],{"alt":224,"className":228,"src":231},[229,134,144,230],"mb-4","pointer-events-none","https:\u002F\u002Ffilaforms.app\u002Fimg\u002Fog-image.png",[91,233,234],{},"Visual form builder for all your public-facing forms.",[220,236,240,244],{"icon":237,"target":223,"title":238,"to":239},"i-lucide-sliders","Custom Fields","https:\u002F\u002Frelaticle.github.io\u002Fcustom-fields",[139,241],{"alt":238,"className":242,"src":243},[229,134,144,230],"https:\u002F\u002Frelaticle.github.io\u002Fcustom-fields\u002Fog-image.png",[91,245,246],{},"Let users add custom fields to any model without code changes.",{"title":77,"searchDepth":248,"depth":248,"links":249},2,[],"md",{},true,"\u002F",{"title":255,"description":256,"ogImage":257},"Filament Comments System","A full-featured commenting system for Filament panels with threaded replies, @mentions, emoji reactions, file attachments, and real-time updates.","\u002Fog-image.png","index","iUGuNPlK2U8WboINEbJQCUSg_fR7lh9h82bJxKY_1vs",1774619383243] \ No newline at end of file diff --git a/assets/builds/latest.json b/assets/builds/latest.json index b2e2b57..1eaea88 100644 --- a/assets/builds/latest.json +++ b/assets/builds/latest.json @@ -1 +1 @@ -{"id":"5fe52460-0632-42ee-9d0a-224a55658ec3","timestamp":1774613399873} \ No newline at end of file +{"id":"d3231e53-027a-4eab-8102-9226a81780ea","timestamp":1774619349619} \ No newline at end of file diff --git a/assets/builds/meta/5fe52460-0632-42ee-9d0a-224a55658ec3.json b/assets/builds/meta/5fe52460-0632-42ee-9d0a-224a55658ec3.json deleted file mode 100644 index 07e992f..0000000 --- a/assets/builds/meta/5fe52460-0632-42ee-9d0a-224a55658ec3.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"5fe52460-0632-42ee-9d0a-224a55658ec3","timestamp":1774613399873,"prerendered":["/","/getting-started/installation","/essentials/configuration","/community/license","/getting-started/upgrading","/essentials/authorization","/essentials/reactions","/essentials/notifications","/essentials/database-schema","/essentials/mentions","/essentials/attachments","/community/contributing"]} \ No newline at end of file diff --git a/assets/builds/meta/d3231e53-027a-4eab-8102-9226a81780ea.json b/assets/builds/meta/d3231e53-027a-4eab-8102-9226a81780ea.json new file mode 100644 index 0000000..d10bd51 --- /dev/null +++ b/assets/builds/meta/d3231e53-027a-4eab-8102-9226a81780ea.json @@ -0,0 +1 @@ +{"id":"d3231e53-027a-4eab-8102-9226a81780ea","timestamp":1774619349619,"prerendered":["/","/getting-started/installation","/essentials/configuration","/community/license","/getting-started/upgrading","/essentials/reactions","/essentials/attachments","/essentials/authorization","/essentials/notifications","/essentials/database-schema","/community/contributing","/essentials/mentions"]} \ No newline at end of file diff --git a/community/contributing.html b/community/contributing.html index ffd7142..8afcd47 100644 --- a/community/contributing.html +++ b/community/contributing.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Contributing - Comments
Comments Logo
1.x
Community

Contributing

How to contribute to Comments

Quick Start

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: composer test
  5. Submit a pull request

Guidelines

  • Follow the existing code style
  • Add tests for new features
  • Update documentation as needed
  • One feature per pull request

Development Commands

# Run tests
+}Contributing - Comments
Comments Logo
1.x
Community

Contributing

How to contribute to Comments

Quick Start

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: composer test
  5. Submit a pull request

Guidelines

  • Follow the existing code style
  • Add tests for new features
  • Update documentation as needed
  • One feature per pull request

Development Commands

# Run tests
 composer test
 
 # Format code
@@ -102,4 +102,4 @@
 
 # Static analysis
 composer analyse
-

Need Help?

Copyright © 2026
\ No newline at end of file +

Need Help?

Copyright © 2026
\ No newline at end of file diff --git a/community/contributing/_payload.json b/community/contributing/_payload.json index c8310d4..1a7adb3 100644 --- a/community/contributing/_payload.json +++ b/community/contributing/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":262},["ShallowReactive",2],{"navigation_docs":3,"-community-contributing":75,"-community-contributing-surround":257},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":66,"body":77,"description":250,"extension":251,"links":252,"meta":253,"navigation":254,"path":67,"seo":255,"stem":68,"__hash__":256},"docs\u002F4.community\u002F1.contributing.md",{"type":78,"value":79,"toc":244},"minimark",[80,85,124,128,143,147,216,220,240],[81,82,84],"h2",{"id":83},"quick-start","Quick Start",[86,87,88,96,102,108,118],"ol",{},[89,90,91,95],"li",{},[92,93,94],"strong",{},"Fork"," the repository",[89,97,98,101],{},[92,99,100],{},"Create"," a feature branch",[89,103,104,107],{},[92,105,106],{},"Make"," your changes",[89,109,110,113,114],{},[92,111,112],{},"Run"," tests: ",[115,116,117],"code",{},"composer test",[89,119,120,123],{},[92,121,122],{},"Submit"," a pull request",[81,125,127],{"id":126},"guidelines","Guidelines",[129,130,131,134,137,140],"ul",{},[89,132,133],{},"Follow the existing code style",[89,135,136],{},"Add tests for new features",[89,138,139],{},"Update documentation as needed",[89,141,142],{},"One feature per pull request",[81,144,146],{"id":145},"development-commands","Development Commands",[148,149,154],"pre",{"className":150,"code":151,"language":152,"meta":153,"style":153},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Run tests\ncomposer test\n\n# Format code\ncomposer pint\n\n# Static analysis\ncomposer analyse\n","bash","",[115,155,156,165,176,183,189,197,202,208],{"__ignoreMap":153},[157,158,161],"span",{"class":159,"line":160},"line",1,[157,162,164],{"class":163},"sHwdD","# Run tests\n",[157,166,168,172],{"class":159,"line":167},2,[157,169,171],{"class":170},"sBMFI","composer",[157,173,175],{"class":174},"sfazB"," test\n",[157,177,179],{"class":159,"line":178},3,[157,180,182],{"emptyLinePlaceholder":181},true,"\n",[157,184,186],{"class":159,"line":185},4,[157,187,188],{"class":163},"# Format code\n",[157,190,192,194],{"class":159,"line":191},5,[157,193,171],{"class":170},[157,195,196],{"class":174}," pint\n",[157,198,200],{"class":159,"line":199},6,[157,201,182],{"emptyLinePlaceholder":181},[157,203,205],{"class":159,"line":204},7,[157,206,207],{"class":163},"# Static analysis\n",[157,209,211,213],{"class":159,"line":210},8,[157,212,171],{"class":170},[157,214,215],{"class":174}," analyse\n",[81,217,219],{"id":218},"need-help","Need Help?",[129,221,222,232],{},[89,223,224,231],{},[225,226,230],"a",{"href":227,"rel":228},"https:\u002F\u002Fgithub.com\u002Frelaticle\u002Fcomments\u002Fissues",[229],"nofollow","Open an issue"," for bugs or questions",[89,233,234,235,239],{},"Check ",[225,236,238],{"href":227,"rel":237},[229],"existing issues"," first",[241,242,243],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":153,"searchDepth":167,"depth":167,"links":245},[246,247,248,249],{"id":83,"depth":167,"text":84},{"id":126,"depth":167,"text":127},{"id":145,"depth":167,"text":146},{"id":218,"depth":167,"text":219},"How to contribute to Comments","md",null,{},{"icon":69},{"title":66,"description":250},"WizyvP9psZ6kzi7GfqkI0Riqpld0llpTEbjKit0RwM0",[258,260],{"title":56,"path":57,"stem":58,"description":259,"icon":59,"children":-1},"Tables, relationships, and indexes used by the Comments package.",{"title":71,"path":72,"stem":73,"description":261,"icon":74,"children":-1},"MIT License terms and what it means for you",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":262},["ShallowReactive",2],{"navigation_docs":3,"-community-contributing":75,"-community-contributing-surround":257},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":66,"body":77,"description":250,"extension":251,"links":252,"meta":253,"navigation":254,"path":67,"seo":255,"stem":68,"__hash__":256},"docs\u002F4.community\u002F1.contributing.md",{"type":78,"value":79,"toc":244},"minimark",[80,85,124,128,143,147,216,220,240],[81,82,84],"h2",{"id":83},"quick-start","Quick Start",[86,87,88,96,102,108,118],"ol",{},[89,90,91,95],"li",{},[92,93,94],"strong",{},"Fork"," the repository",[89,97,98,101],{},[92,99,100],{},"Create"," a feature branch",[89,103,104,107],{},[92,105,106],{},"Make"," your changes",[89,109,110,113,114],{},[92,111,112],{},"Run"," tests: ",[115,116,117],"code",{},"composer test",[89,119,120,123],{},[92,121,122],{},"Submit"," a pull request",[81,125,127],{"id":126},"guidelines","Guidelines",[129,130,131,134,137,140],"ul",{},[89,132,133],{},"Follow the existing code style",[89,135,136],{},"Add tests for new features",[89,138,139],{},"Update documentation as needed",[89,141,142],{},"One feature per pull request",[81,144,146],{"id":145},"development-commands","Development Commands",[148,149,154],"pre",{"className":150,"code":151,"language":152,"meta":153,"style":153},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Run tests\ncomposer test\n\n# Format code\ncomposer pint\n\n# Static analysis\ncomposer analyse\n","bash","",[115,155,156,165,176,183,189,197,202,208],{"__ignoreMap":153},[157,158,161],"span",{"class":159,"line":160},"line",1,[157,162,164],{"class":163},"sHwdD","# Run tests\n",[157,166,168,172],{"class":159,"line":167},2,[157,169,171],{"class":170},"sBMFI","composer",[157,173,175],{"class":174},"sfazB"," test\n",[157,177,179],{"class":159,"line":178},3,[157,180,182],{"emptyLinePlaceholder":181},true,"\n",[157,184,186],{"class":159,"line":185},4,[157,187,188],{"class":163},"# Format code\n",[157,190,192,194],{"class":159,"line":191},5,[157,193,171],{"class":170},[157,195,196],{"class":174}," pint\n",[157,198,200],{"class":159,"line":199},6,[157,201,182],{"emptyLinePlaceholder":181},[157,203,205],{"class":159,"line":204},7,[157,206,207],{"class":163},"# Static analysis\n",[157,209,211,213],{"class":159,"line":210},8,[157,212,171],{"class":170},[157,214,215],{"class":174}," analyse\n",[81,217,219],{"id":218},"need-help","Need Help?",[129,221,222,232],{},[89,223,224,231],{},[225,226,230],"a",{"href":227,"rel":228},"https:\u002F\u002Fgithub.com\u002Frelaticle\u002Fcomments\u002Fissues",[229],"nofollow","Open an issue"," for bugs or questions",[89,233,234,235,239],{},"Check ",[225,236,238],{"href":227,"rel":237},[229],"existing issues"," first",[241,242,243],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":153,"searchDepth":167,"depth":167,"links":245},[246,247,248,249],{"id":83,"depth":167,"text":84},{"id":126,"depth":167,"text":127},{"id":145,"depth":167,"text":146},{"id":218,"depth":167,"text":219},"How to contribute to Comments","md",null,{},{"icon":69},{"title":66,"description":250},"WizyvP9psZ6kzi7GfqkI0Riqpld0llpTEbjKit0RwM0",[258,260],{"title":56,"path":57,"stem":58,"description":259,"icon":59,"children":-1},"Tables, relationships, and indexes used by the Comments package.",{"title":71,"path":72,"stem":73,"description":261,"icon":74,"children":-1},"MIT License terms and what it means for you",1774619385139] \ No newline at end of file diff --git a/community/license.html b/community/license.html index 747c9a0..e605a33 100644 --- a/community/license.html +++ b/community/license.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}License - Comments
Comments Logo
1.x
Community

License

MIT License terms and what it means for you

MIT License

Copyright (c) Relaticle
+}License - Comments
Comments Logo
1.x
Community

License

MIT License terms and what it means for you

MIT License

Copyright (c) Relaticle
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -116,4 +116,4 @@ THE SOFTWARE.
 

What This Means

You can use Comments in commercial projects. You can modify and distribute it. You can use it in closed source projects. -You can sell applications that include it.

Just include the license notice in your copy.

Copyright © 2026
\ No newline at end of file +You can sell applications that include it.

Just include the license notice in your copy.

Copyright © 2026
\ No newline at end of file diff --git a/community/license/_payload.json b/community/license/_payload.json index d51b40d..36ab0a3 100644 --- a/community/license/_payload.json +++ b/community/license/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":136},["ShallowReactive",2],{"navigation_docs":3,"-community-license":75,"-community-license-surround":133},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":71,"body":77,"description":126,"extension":127,"links":128,"meta":129,"navigation":130,"path":72,"seo":131,"stem":73,"__hash__":132},"docs\u002F4.community\u002F2.license.md",{"type":78,"value":79,"toc":121},"minimark",[80,85,96,100,118],[81,82,84],"h2",{"id":83},"mit-license","MIT License",[86,87,92],"pre",{"className":88,"code":90,"language":91},[89],"language-text","Copyright (c) Relaticle\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","text",[93,94,90],"code",{"__ignoreMap":95},"",[81,97,99],{"id":98},"what-this-means","What This Means",[101,102,103,104,108,109,111,112,114,115,117],"p",{},"You ",[105,106,107],"strong",{},"can"," use Comments in commercial projects.\nYou ",[105,110,107],{}," modify and distribute it.\nYou ",[105,113,107],{}," use it in closed source projects.\nYou ",[105,116,107],{}," sell applications that include it.",[101,119,120],{},"Just include the license notice in your copy.",{"title":95,"searchDepth":122,"depth":122,"links":123},2,[124,125],{"id":83,"depth":122,"text":84},{"id":98,"depth":122,"text":99},"MIT License terms and what it means for you","md",null,{},{"icon":74},{"title":71,"description":126},"0vOJT-zB-Vz0zBt_oMaewM8TIacFMi_ctus0AaWjZAI",[134,128],{"title":66,"path":67,"stem":68,"description":135,"icon":69,"children":-1},"How to contribute to Comments",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":136},["ShallowReactive",2],{"navigation_docs":3,"-community-license":75,"-community-license-surround":133},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":71,"body":77,"description":126,"extension":127,"links":128,"meta":129,"navigation":130,"path":72,"seo":131,"stem":73,"__hash__":132},"docs\u002F4.community\u002F2.license.md",{"type":78,"value":79,"toc":121},"minimark",[80,85,96,100,118],[81,82,84],"h2",{"id":83},"mit-license","MIT License",[86,87,92],"pre",{"className":88,"code":90,"language":91},[89],"language-text","Copyright (c) Relaticle\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","text",[93,94,90],"code",{"__ignoreMap":95},"",[81,97,99],{"id":98},"what-this-means","What This Means",[101,102,103,104,108,109,111,112,114,115,117],"p",{},"You ",[105,106,107],"strong",{},"can"," use Comments in commercial projects.\nYou ",[105,110,107],{}," modify and distribute it.\nYou ",[105,113,107],{}," use it in closed source projects.\nYou ",[105,116,107],{}," sell applications that include it.",[101,119,120],{},"Just include the license notice in your copy.",{"title":95,"searchDepth":122,"depth":122,"links":123},2,[124,125],{"id":83,"depth":122,"text":84},{"id":98,"depth":122,"text":99},"MIT License terms and what it means for you","md",null,{},{"icon":74},{"title":71,"description":126},"0vOJT-zB-Vz0zBt_oMaewM8TIacFMi_ctus0AaWjZAI",[134,128],{"title":66,"path":67,"stem":68,"description":135,"icon":69,"children":-1},"How to contribute to Comments",1774619385139] \ No newline at end of file diff --git a/essentials/attachments.html b/essentials/attachments.html index fde3ee3..9ee1cdd 100644 --- a/essentials/attachments.html +++ b/essentials/attachments.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Attachments - Comments
Comments Logo
1.x
Essentials

Attachments

File uploads for comments.

Overview

Comments support file attachments for both images and documents. Images are displayed inline within the comment body, while documents appear as downloadable links.

Configuration

// config/comments.php
+}Attachments - Comments
Comments Logo
1.x
Essentials

Attachments

File uploads for comments.

Overview

Comments support file attachments for both images and documents. Images are displayed inline within the comment body, while documents appear as downloadable links.

Configuration

// config/comments.php
 'attachments' => [
     'enabled' => true,
     'disk' => 'public',
@@ -116,4 +116,4 @@
 

This removes the file upload UI from the comment form entirely.

Storage

Attachments are stored via Livewire's file upload mechanism. Each attachment record tracks:

  • file_path -- Path on the configured disk
  • original_name -- Original filename for display
  • mime_type -- MIME type for rendering decisions
  • size -- File size in bytes
  • disk -- Storage disk name

When a comment is deleted, its attachments are cascade deleted from the database. The physical files are removed from the disk.

Helper Methods

The Attachment model (Relaticle\Comments\Models\Attachment) provides:

$attachment->isImage();       // Check if attachment is an image
 $attachment->url();           // Get the storage URL
 $attachment->formattedSize(); // Human-readable size (e.g., "2.5 MB")
-
Copyright © 2026
\ No newline at end of file +
Copyright © 2026
\ No newline at end of file diff --git a/essentials/attachments/_payload.json b/essentials/attachments/_payload.json index 95e0897..524df9c 100644 --- a/essentials/attachments/_payload.json +++ b/essentials/attachments/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":573},["ShallowReactive",2],{"navigation_docs":3,"-essentials-attachments":75,"-essentials-attachments-surround":568},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":46,"body":77,"description":560,"extension":561,"links":562,"meta":563,"navigation":564,"path":47,"seo":565,"stem":48,"__hash__":567},"docs\u002F2.essentials\u002F5.attachments.md",{"type":78,"value":79,"toc":553},"minimark",[80,85,89,92,314,391,395,429,432,436,439,472,475,479,490,549],[81,82,84],"h2",{"id":83},"overview","Overview",[86,87,88],"p",{},"Comments support file attachments for both images and documents. Images are displayed inline within the comment body, while documents appear as downloadable links.",[81,90,26],{"id":91},"configuration",[93,94,99],"pre",{"className":95,"code":96,"language":97,"meta":98,"style":98},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F config\u002Fcomments.php\n'attachments' => [\n 'enabled' => true,\n 'disk' => 'public',\n 'max_size' => 10240, \u002F\u002F KB (10 MB)\n 'allowed_types' => [\n 'image\u002Fjpeg',\n 'image\u002Fpng',\n 'image\u002Fgif',\n 'image\u002Fwebp',\n 'application\u002Fpdf',\n 'text\u002Fplain',\n 'application\u002Fmsword',\n 'application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document',\n ],\n],\n","php","",[100,101,102,111,130,146,169,191,205,218,230,242,254,266,278,290,302,308],"code",{"__ignoreMap":98},[103,104,107],"span",{"class":105,"line":106},"line",1,[103,108,110],{"class":109},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[103,112,114,118,122,124,127],{"class":105,"line":113},2,[103,115,117],{"class":116},"sMK4o","'",[103,119,121],{"class":120},"sfazB","attachments",[103,123,117],{"class":116},[103,125,126],{"class":116}," =>",[103,128,129],{"class":116}," [\n",[103,131,133,136,139,141,143],{"class":105,"line":132},3,[103,134,135],{"class":116}," '",[103,137,138],{"class":120},"enabled",[103,140,117],{"class":116},[103,142,126],{"class":116},[103,144,145],{"class":116}," true,\n",[103,147,149,151,154,156,158,161,164,166],{"class":105,"line":148},4,[103,150,135],{"class":116},[103,152,153],{"class":120},"disk",[103,155,117],{"class":116},[103,157,126],{"class":116},[103,159,160],{"class":116}," '",[103,162,163],{"class":120},"public",[103,165,117],{"class":116},[103,167,168],{"class":116},",\n",[103,170,172,174,177,179,181,185,188],{"class":105,"line":171},5,[103,173,135],{"class":116},[103,175,176],{"class":120},"max_size",[103,178,117],{"class":116},[103,180,126],{"class":116},[103,182,184],{"class":183},"sbssI"," 10240",[103,186,187],{"class":116},",",[103,189,190],{"class":109}," \u002F\u002F KB (10 MB)\n",[103,192,194,196,199,201,203],{"class":105,"line":193},6,[103,195,135],{"class":116},[103,197,198],{"class":120},"allowed_types",[103,200,117],{"class":116},[103,202,126],{"class":116},[103,204,129],{"class":116},[103,206,208,211,214,216],{"class":105,"line":207},7,[103,209,210],{"class":116}," '",[103,212,213],{"class":120},"image\u002Fjpeg",[103,215,117],{"class":116},[103,217,168],{"class":116},[103,219,221,223,226,228],{"class":105,"line":220},8,[103,222,210],{"class":116},[103,224,225],{"class":120},"image\u002Fpng",[103,227,117],{"class":116},[103,229,168],{"class":116},[103,231,233,235,238,240],{"class":105,"line":232},9,[103,234,210],{"class":116},[103,236,237],{"class":120},"image\u002Fgif",[103,239,117],{"class":116},[103,241,168],{"class":116},[103,243,245,247,250,252],{"class":105,"line":244},10,[103,246,210],{"class":116},[103,248,249],{"class":120},"image\u002Fwebp",[103,251,117],{"class":116},[103,253,168],{"class":116},[103,255,257,259,262,264],{"class":105,"line":256},11,[103,258,210],{"class":116},[103,260,261],{"class":120},"application\u002Fpdf",[103,263,117],{"class":116},[103,265,168],{"class":116},[103,267,269,271,274,276],{"class":105,"line":268},12,[103,270,210],{"class":116},[103,272,273],{"class":120},"text\u002Fplain",[103,275,117],{"class":116},[103,277,168],{"class":116},[103,279,281,283,286,288],{"class":105,"line":280},13,[103,282,210],{"class":116},[103,284,285],{"class":120},"application\u002Fmsword",[103,287,117],{"class":116},[103,289,168],{"class":116},[103,291,293,295,298,300],{"class":105,"line":292},14,[103,294,210],{"class":116},[103,296,297],{"class":120},"application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document",[103,299,117],{"class":116},[103,301,168],{"class":116},[103,303,305],{"class":105,"line":304},15,[103,306,307],{"class":116}," ],\n",[103,309,311],{"class":105,"line":310},16,[103,312,313],{"class":116},"],\n",[315,316,317,333],"table",{},[318,319,320],"thead",{},[321,322,323,327,330],"tr",{},[324,325,326],"th",{},"Key",[324,328,329],{},"Default",[324,331,332],{},"Description",[334,335,336,351,365,379],"tbody",{},[321,337,338,343,348],{},[339,340,341],"td",{},[100,342,138],{},[339,344,345],{},[100,346,347],{},"true",[339,349,350],{},"Show\u002Fhide the attachment upload UI",[321,352,353,357,362],{},[339,354,355],{},[100,356,153],{},[339,358,359],{},[100,360,361],{},"'public'",[339,363,364],{},"Laravel filesystem disk for storage",[321,366,367,371,376],{},[339,368,369],{},[100,370,176],{},[339,372,373],{},[100,374,375],{},"10240",[339,377,378],{},"Maximum file size in kilobytes",[321,380,381,385,388],{},[339,382,383],{},[100,384,198],{},[339,386,387],{},"images, pdf, text, word",[339,389,390],{},"Array of allowed MIME types",[81,392,394],{"id":393},"disabling-attachments","Disabling Attachments",[93,396,398],{"className":95,"code":397,"language":97,"meta":98,"style":98},"'attachments' => [\n 'enabled' => false,\n],\n",[100,399,400,412,425],{"__ignoreMap":98},[103,401,402,404,406,408,410],{"class":105,"line":106},[103,403,117],{"class":116},[103,405,121],{"class":120},[103,407,117],{"class":116},[103,409,126],{"class":116},[103,411,129],{"class":116},[103,413,414,416,418,420,422],{"class":105,"line":113},[103,415,135],{"class":116},[103,417,138],{"class":120},[103,419,117],{"class":116},[103,421,126],{"class":116},[103,423,424],{"class":116}," false,\n",[103,426,427],{"class":105,"line":132},[103,428,313],{"class":116},[86,430,431],{},"This removes the file upload UI from the comment form entirely.",[81,433,435],{"id":434},"storage","Storage",[86,437,438],{},"Attachments are stored via Livewire's file upload mechanism. Each attachment record tracks:",[440,441,442,449,455,461,467],"ul",{},[443,444,445,448],"li",{},[100,446,447],{},"file_path"," -- Path on the configured disk",[443,450,451,454],{},[100,452,453],{},"original_name"," -- Original filename for display",[443,456,457,460],{},[100,458,459],{},"mime_type"," -- MIME type for rendering decisions",[443,462,463,466],{},[100,464,465],{},"size"," -- File size in bytes",[443,468,469,471],{},[100,470,153],{}," -- Storage disk name",[86,473,474],{},"When a comment is deleted, its attachments are cascade deleted from the database. The physical files are removed from the disk.",[81,476,478],{"id":477},"helper-methods","Helper Methods",[86,480,481,482,485,486,489],{},"The ",[100,483,484],{},"Attachment"," model (",[100,487,488],{},"Relaticle\\Comments\\Models\\Attachment",") provides:",[93,491,493],{"className":95,"code":492,"language":97,"meta":98,"style":98},"$attachment->isImage(); \u002F\u002F Check if attachment is an image\n$attachment->url(); \u002F\u002F Get the storage URL\n$attachment->formattedSize(); \u002F\u002F Human-readable size (e.g., \"2.5 MB\")\n",[100,494,495,517,533],{"__ignoreMap":98},[103,496,497,500,504,507,511,514],{"class":105,"line":106},[103,498,499],{"class":116},"$",[103,501,503],{"class":502},"sTEyZ","attachment",[103,505,506],{"class":116},"->",[103,508,510],{"class":509},"s2Zo4","isImage",[103,512,513],{"class":116},"();",[103,515,516],{"class":109}," \u002F\u002F Check if attachment is an image\n",[103,518,519,521,523,525,528,530],{"class":105,"line":113},[103,520,499],{"class":116},[103,522,503],{"class":502},[103,524,506],{"class":116},[103,526,527],{"class":509},"url",[103,529,513],{"class":116},[103,531,532],{"class":109}," \u002F\u002F Get the storage URL\n",[103,534,535,537,539,541,544,546],{"class":105,"line":132},[103,536,499],{"class":116},[103,538,503],{"class":502},[103,540,506],{"class":116},[103,542,543],{"class":509},"formattedSize",[103,545,513],{"class":116},[103,547,548],{"class":109}," \u002F\u002F Human-readable size (e.g., \"2.5 MB\")\n",[550,551,552],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":98,"searchDepth":113,"depth":113,"links":554},[555,556,557,558,559],{"id":83,"depth":113,"text":84},{"id":91,"depth":113,"text":26},{"id":393,"depth":113,"text":394},{"id":434,"depth":113,"text":435},{"id":477,"depth":113,"text":478},"File uploads for comments.","md",null,{},{"icon":49},{"description":566,"title":46},"Configure file attachments for comments.","2i1KLeQ5uOjOTMP7h7xx9NSEndac1lmqjdxX9lCW-k4",[569,571],{"title":41,"path":42,"stem":43,"description":570,"icon":44,"children":-1},"Emoji reactions on comments.",{"title":51,"path":52,"stem":53,"description":572,"icon":54,"children":-1},"Comment notifications, subscriptions, and real-time updates.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":573},["ShallowReactive",2],{"navigation_docs":3,"-essentials-attachments":75,"-essentials-attachments-surround":568},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":46,"body":77,"description":560,"extension":561,"links":562,"meta":563,"navigation":564,"path":47,"seo":565,"stem":48,"__hash__":567},"docs\u002F2.essentials\u002F5.attachments.md",{"type":78,"value":79,"toc":553},"minimark",[80,85,89,92,314,391,395,429,432,436,439,472,475,479,490,549],[81,82,84],"h2",{"id":83},"overview","Overview",[86,87,88],"p",{},"Comments support file attachments for both images and documents. Images are displayed inline within the comment body, while documents appear as downloadable links.",[81,90,26],{"id":91},"configuration",[93,94,99],"pre",{"className":95,"code":96,"language":97,"meta":98,"style":98},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F config\u002Fcomments.php\n'attachments' => [\n 'enabled' => true,\n 'disk' => 'public',\n 'max_size' => 10240, \u002F\u002F KB (10 MB)\n 'allowed_types' => [\n 'image\u002Fjpeg',\n 'image\u002Fpng',\n 'image\u002Fgif',\n 'image\u002Fwebp',\n 'application\u002Fpdf',\n 'text\u002Fplain',\n 'application\u002Fmsword',\n 'application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document',\n ],\n],\n","php","",[100,101,102,111,130,146,169,191,205,218,230,242,254,266,278,290,302,308],"code",{"__ignoreMap":98},[103,104,107],"span",{"class":105,"line":106},"line",1,[103,108,110],{"class":109},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[103,112,114,118,122,124,127],{"class":105,"line":113},2,[103,115,117],{"class":116},"sMK4o","'",[103,119,121],{"class":120},"sfazB","attachments",[103,123,117],{"class":116},[103,125,126],{"class":116}," =>",[103,128,129],{"class":116}," [\n",[103,131,133,136,139,141,143],{"class":105,"line":132},3,[103,134,135],{"class":116}," '",[103,137,138],{"class":120},"enabled",[103,140,117],{"class":116},[103,142,126],{"class":116},[103,144,145],{"class":116}," true,\n",[103,147,149,151,154,156,158,161,164,166],{"class":105,"line":148},4,[103,150,135],{"class":116},[103,152,153],{"class":120},"disk",[103,155,117],{"class":116},[103,157,126],{"class":116},[103,159,160],{"class":116}," '",[103,162,163],{"class":120},"public",[103,165,117],{"class":116},[103,167,168],{"class":116},",\n",[103,170,172,174,177,179,181,185,188],{"class":105,"line":171},5,[103,173,135],{"class":116},[103,175,176],{"class":120},"max_size",[103,178,117],{"class":116},[103,180,126],{"class":116},[103,182,184],{"class":183},"sbssI"," 10240",[103,186,187],{"class":116},",",[103,189,190],{"class":109}," \u002F\u002F KB (10 MB)\n",[103,192,194,196,199,201,203],{"class":105,"line":193},6,[103,195,135],{"class":116},[103,197,198],{"class":120},"allowed_types",[103,200,117],{"class":116},[103,202,126],{"class":116},[103,204,129],{"class":116},[103,206,208,211,214,216],{"class":105,"line":207},7,[103,209,210],{"class":116}," '",[103,212,213],{"class":120},"image\u002Fjpeg",[103,215,117],{"class":116},[103,217,168],{"class":116},[103,219,221,223,226,228],{"class":105,"line":220},8,[103,222,210],{"class":116},[103,224,225],{"class":120},"image\u002Fpng",[103,227,117],{"class":116},[103,229,168],{"class":116},[103,231,233,235,238,240],{"class":105,"line":232},9,[103,234,210],{"class":116},[103,236,237],{"class":120},"image\u002Fgif",[103,239,117],{"class":116},[103,241,168],{"class":116},[103,243,245,247,250,252],{"class":105,"line":244},10,[103,246,210],{"class":116},[103,248,249],{"class":120},"image\u002Fwebp",[103,251,117],{"class":116},[103,253,168],{"class":116},[103,255,257,259,262,264],{"class":105,"line":256},11,[103,258,210],{"class":116},[103,260,261],{"class":120},"application\u002Fpdf",[103,263,117],{"class":116},[103,265,168],{"class":116},[103,267,269,271,274,276],{"class":105,"line":268},12,[103,270,210],{"class":116},[103,272,273],{"class":120},"text\u002Fplain",[103,275,117],{"class":116},[103,277,168],{"class":116},[103,279,281,283,286,288],{"class":105,"line":280},13,[103,282,210],{"class":116},[103,284,285],{"class":120},"application\u002Fmsword",[103,287,117],{"class":116},[103,289,168],{"class":116},[103,291,293,295,298,300],{"class":105,"line":292},14,[103,294,210],{"class":116},[103,296,297],{"class":120},"application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document",[103,299,117],{"class":116},[103,301,168],{"class":116},[103,303,305],{"class":105,"line":304},15,[103,306,307],{"class":116}," ],\n",[103,309,311],{"class":105,"line":310},16,[103,312,313],{"class":116},"],\n",[315,316,317,333],"table",{},[318,319,320],"thead",{},[321,322,323,327,330],"tr",{},[324,325,326],"th",{},"Key",[324,328,329],{},"Default",[324,331,332],{},"Description",[334,335,336,351,365,379],"tbody",{},[321,337,338,343,348],{},[339,340,341],"td",{},[100,342,138],{},[339,344,345],{},[100,346,347],{},"true",[339,349,350],{},"Show\u002Fhide the attachment upload UI",[321,352,353,357,362],{},[339,354,355],{},[100,356,153],{},[339,358,359],{},[100,360,361],{},"'public'",[339,363,364],{},"Laravel filesystem disk for storage",[321,366,367,371,376],{},[339,368,369],{},[100,370,176],{},[339,372,373],{},[100,374,375],{},"10240",[339,377,378],{},"Maximum file size in kilobytes",[321,380,381,385,388],{},[339,382,383],{},[100,384,198],{},[339,386,387],{},"images, pdf, text, word",[339,389,390],{},"Array of allowed MIME types",[81,392,394],{"id":393},"disabling-attachments","Disabling Attachments",[93,396,398],{"className":95,"code":397,"language":97,"meta":98,"style":98},"'attachments' => [\n 'enabled' => false,\n],\n",[100,399,400,412,425],{"__ignoreMap":98},[103,401,402,404,406,408,410],{"class":105,"line":106},[103,403,117],{"class":116},[103,405,121],{"class":120},[103,407,117],{"class":116},[103,409,126],{"class":116},[103,411,129],{"class":116},[103,413,414,416,418,420,422],{"class":105,"line":113},[103,415,135],{"class":116},[103,417,138],{"class":120},[103,419,117],{"class":116},[103,421,126],{"class":116},[103,423,424],{"class":116}," false,\n",[103,426,427],{"class":105,"line":132},[103,428,313],{"class":116},[86,430,431],{},"This removes the file upload UI from the comment form entirely.",[81,433,435],{"id":434},"storage","Storage",[86,437,438],{},"Attachments are stored via Livewire's file upload mechanism. Each attachment record tracks:",[440,441,442,449,455,461,467],"ul",{},[443,444,445,448],"li",{},[100,446,447],{},"file_path"," -- Path on the configured disk",[443,450,451,454],{},[100,452,453],{},"original_name"," -- Original filename for display",[443,456,457,460],{},[100,458,459],{},"mime_type"," -- MIME type for rendering decisions",[443,462,463,466],{},[100,464,465],{},"size"," -- File size in bytes",[443,468,469,471],{},[100,470,153],{}," -- Storage disk name",[86,473,474],{},"When a comment is deleted, its attachments are cascade deleted from the database. The physical files are removed from the disk.",[81,476,478],{"id":477},"helper-methods","Helper Methods",[86,480,481,482,485,486,489],{},"The ",[100,483,484],{},"Attachment"," model (",[100,487,488],{},"Relaticle\\Comments\\Models\\Attachment",") provides:",[93,491,493],{"className":95,"code":492,"language":97,"meta":98,"style":98},"$attachment->isImage(); \u002F\u002F Check if attachment is an image\n$attachment->url(); \u002F\u002F Get the storage URL\n$attachment->formattedSize(); \u002F\u002F Human-readable size (e.g., \"2.5 MB\")\n",[100,494,495,517,533],{"__ignoreMap":98},[103,496,497,500,504,507,511,514],{"class":105,"line":106},[103,498,499],{"class":116},"$",[103,501,503],{"class":502},"sTEyZ","attachment",[103,505,506],{"class":116},"->",[103,508,510],{"class":509},"s2Zo4","isImage",[103,512,513],{"class":116},"();",[103,515,516],{"class":109}," \u002F\u002F Check if attachment is an image\n",[103,518,519,521,523,525,528,530],{"class":105,"line":113},[103,520,499],{"class":116},[103,522,503],{"class":502},[103,524,506],{"class":116},[103,526,527],{"class":509},"url",[103,529,513],{"class":116},[103,531,532],{"class":109}," \u002F\u002F Get the storage URL\n",[103,534,535,537,539,541,544,546],{"class":105,"line":132},[103,536,499],{"class":116},[103,538,503],{"class":502},[103,540,506],{"class":116},[103,542,543],{"class":509},"formattedSize",[103,545,513],{"class":116},[103,547,548],{"class":109}," \u002F\u002F Human-readable size (e.g., \"2.5 MB\")\n",[550,551,552],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":98,"searchDepth":113,"depth":113,"links":554},[555,556,557,558,559],{"id":83,"depth":113,"text":84},{"id":91,"depth":113,"text":26},{"id":393,"depth":113,"text":394},{"id":434,"depth":113,"text":435},{"id":477,"depth":113,"text":478},"File uploads for comments.","md",null,{},{"icon":49},{"description":566,"title":46},"Configure file attachments for comments.","2i1KLeQ5uOjOTMP7h7xx9NSEndac1lmqjdxX9lCW-k4",[569,571],{"title":41,"path":42,"stem":43,"description":570,"icon":44,"children":-1},"Emoji reactions on comments.",{"title":51,"path":52,"stem":53,"description":572,"icon":54,"children":-1},"Comment notifications, subscriptions, and real-time updates.",1774619385139] \ No newline at end of file diff --git a/essentials/authorization.html b/essentials/authorization.html index d75fc58..d2f0aac 100644 --- a/essentials/authorization.html +++ b/essentials/authorization.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Authorization - Comments
Comments Logo
1.x
Essentials

Authorization

Control who can create, edit, delete, and reply to comments.

Default Policy

The built-in CommentPolicy provides sensible defaults:

MethodDefaultDescription
viewAny()trueEveryone can view comments
create()trueEveryone can create comments
update()Owner onlyOnly the comment author can edit
delete()Owner onlyOnly the comment author can delete
reply()Depth checkCan reply if max_depth not exceeded

Custom Policy

Create your own policy to customize authorization:

namespace App\Policies;
+}Authorization - Comments
Comments Logo
1.x
Essentials

Authorization

Control who can create, edit, delete, and reply to comments.

Default Policy

The built-in CommentPolicy provides sensible defaults:

MethodDefaultDescription
viewAny()trueEveryone can view comments
create()trueEveryone can create comments
update()Owner onlyOnly the comment author can edit
delete()Owner onlyOnly the comment author can delete
reply()Depth checkCan reply if max_depth not exceeded

Custom Policy

Create your own policy to customize authorization:

namespace App\Policies;
 
 use Relaticle\Comments\Models\Comment;
 use Relaticle\Comments\Contracts\Commentator;
@@ -130,4 +130,4 @@
 }
 

Register it in your config:

// config/comments.php
 'policy' => App\Policies\CustomCommentPolicy::class,
-

How Authorization Works

The Livewire components check the policy before rendering action buttons. Edit and delete buttons only appear for authorized users. Reply buttons are hidden when the thread has reached the configured max_depth.

The policy is registered automatically by the service provider using Laravel's Gate system.

Copyright © 2026
\ No newline at end of file +

How Authorization Works

The Livewire components check the policy before rendering action buttons. Edit and delete buttons only appear for authorized users. Reply buttons are hidden when the thread has reached the configured max_depth.

The policy is registered automatically by the service provider using Laravel's Gate system.

Copyright © 2026
\ No newline at end of file diff --git a/essentials/authorization/_payload.json b/essentials/authorization/_payload.json index 67e2549..fe3c590 100644 --- a/essentials/authorization/_payload.json +++ b/essentials/authorization/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":754},["ShallowReactive",2],{"navigation_docs":3,"-essentials-authorization":75,"-essentials-authorization-surround":749},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":31,"body":77,"description":741,"extension":742,"links":743,"meta":744,"navigation":745,"path":32,"seo":746,"stem":33,"__hash__":748},"docs\u002F2.essentials\u002F2.authorization.md",{"type":78,"value":79,"toc":736},"minimark",[80,85,94,188,192,195,674,677,719,723,729,732],[81,82,84],"h2",{"id":83},"default-policy","Default Policy",[86,87,88,89,93],"p",{},"The built-in ",[90,91,92],"code",{},"CommentPolicy"," provides sensible defaults:",[95,96,97,113],"table",{},[98,99,100],"thead",{},[101,102,103,107,110],"tr",{},[104,105,106],"th",{},"Method",[104,108,109],{},"Default",[104,111,112],{},"Description",[114,115,116,132,146,159,171],"tbody",{},[101,117,118,124,129],{},[119,120,121],"td",{},[90,122,123],{},"viewAny()",[119,125,126],{},[90,127,128],{},"true",[119,130,131],{},"Everyone can view comments",[101,133,134,139,143],{},[119,135,136],{},[90,137,138],{},"create()",[119,140,141],{},[90,142,128],{},[119,144,145],{},"Everyone can create comments",[101,147,148,153,156],{},[119,149,150],{},[90,151,152],{},"update()",[119,154,155],{},"Owner only",[119,157,158],{},"Only the comment author can edit",[101,160,161,166,168],{},[119,162,163],{},[90,164,165],{},"delete()",[119,167,155],{},[119,169,170],{},"Only the comment author can delete",[101,172,173,178,181],{},[119,174,175],{},[90,176,177],{},"reply()",[119,179,180],{},"Depth check",[119,182,183,184,187],{},"Can reply if ",[90,185,186],{},"max_depth"," not exceeded",[81,189,191],{"id":190},"custom-policy","Custom Policy",[86,193,194],{},"Create your own policy to customize authorization:",[196,197,202],"pre",{"className":198,"code":199,"language":200,"meta":201,"style":201},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","namespace App\\Policies;\n\nuse Relaticle\\Comments\\Models\\Comment;\nuse Relaticle\\Comments\\Contracts\\Commentator;\n\nclass CustomCommentPolicy\n{\n public function viewAny(Commentator $user): bool\n {\n return true;\n }\n\n public function create(Commentator $user): bool\n {\n return true;\n }\n\n public function update(Commentator $user, Comment $comment): bool\n {\n return $comment->commenter_id === $user->getKey()\n && $comment->commenter_type === $user->getMorphClass();\n }\n\n public function delete(Commentator $user, Comment $comment): bool\n {\n return $comment->commenter_id === $user->getKey()\n || $user->hasRole('admin');\n }\n\n public function reply(Commentator $user, Comment $comment): bool\n {\n return $comment->canReply();\n }\n}\n","php","",[90,203,204,227,234,261,284,289,299,305,335,341,351,357,362,384,389,396,401,406,439,444,474,503,508,513,543,548,573,602,607,612,642,647,663,668],{"__ignoreMap":201},[205,206,209,213,217,221,224],"span",{"class":207,"line":208},"line",1,[205,210,212],{"class":211},"sbssI","namespace",[205,214,216],{"class":215},"sBMFI"," App",[205,218,220],{"class":219},"sMK4o","\\",[205,222,223],{"class":215},"Policies",[205,225,226],{"class":219},";\n",[205,228,230],{"class":207,"line":229},2,[205,231,233],{"emptyLinePlaceholder":232},true,"\n",[205,235,237,240,244,246,249,251,254,256,259],{"class":207,"line":236},3,[205,238,239],{"class":211},"use",[205,241,243],{"class":242},"sTEyZ"," Relaticle",[205,245,220],{"class":219},[205,247,248],{"class":242},"Comments",[205,250,220],{"class":219},[205,252,253],{"class":242},"Models",[205,255,220],{"class":219},[205,257,258],{"class":242},"Comment",[205,260,226],{"class":219},[205,262,264,266,268,270,272,274,277,279,282],{"class":207,"line":263},4,[205,265,239],{"class":211},[205,267,243],{"class":242},[205,269,220],{"class":219},[205,271,248],{"class":242},[205,273,220],{"class":219},[205,275,276],{"class":242},"Contracts",[205,278,220],{"class":219},[205,280,281],{"class":242},"Commentator",[205,283,226],{"class":219},[205,285,287],{"class":207,"line":286},5,[205,288,233],{"emptyLinePlaceholder":232},[205,290,292,296],{"class":207,"line":291},6,[205,293,295],{"class":294},"spNyl","class",[205,297,298],{"class":215}," CustomCommentPolicy\n",[205,300,302],{"class":207,"line":301},7,[205,303,304],{"class":219},"{\n",[205,306,308,311,314,318,321,323,326,329,332],{"class":207,"line":307},8,[205,309,310],{"class":294}," public",[205,312,313],{"class":294}," function",[205,315,317],{"class":316},"s2Zo4"," viewAny",[205,319,320],{"class":219},"(",[205,322,281],{"class":215},[205,324,325],{"class":219}," $",[205,327,328],{"class":242},"user",[205,330,331],{"class":219},"):",[205,333,334],{"class":211}," bool\n",[205,336,338],{"class":207,"line":337},9,[205,339,340],{"class":219}," {\n",[205,342,344,348],{"class":207,"line":343},10,[205,345,347],{"class":346},"s7zQu"," return",[205,349,350],{"class":219}," true;\n",[205,352,354],{"class":207,"line":353},11,[205,355,356],{"class":219}," }\n",[205,358,360],{"class":207,"line":359},12,[205,361,233],{"emptyLinePlaceholder":232},[205,363,365,367,369,372,374,376,378,380,382],{"class":207,"line":364},13,[205,366,310],{"class":294},[205,368,313],{"class":294},[205,370,371],{"class":316}," create",[205,373,320],{"class":219},[205,375,281],{"class":215},[205,377,325],{"class":219},[205,379,328],{"class":242},[205,381,331],{"class":219},[205,383,334],{"class":211},[205,385,387],{"class":207,"line":386},14,[205,388,340],{"class":219},[205,390,392,394],{"class":207,"line":391},15,[205,393,347],{"class":346},[205,395,350],{"class":219},[205,397,399],{"class":207,"line":398},16,[205,400,356],{"class":219},[205,402,404],{"class":207,"line":403},17,[205,405,233],{"emptyLinePlaceholder":232},[205,407,409,411,413,416,418,420,422,424,427,430,432,435,437],{"class":207,"line":408},18,[205,410,310],{"class":294},[205,412,313],{"class":294},[205,414,415],{"class":316}," update",[205,417,320],{"class":219},[205,419,281],{"class":215},[205,421,325],{"class":219},[205,423,328],{"class":242},[205,425,426],{"class":219},",",[205,428,429],{"class":215}," Comment",[205,431,325],{"class":219},[205,433,434],{"class":242},"comment",[205,436,331],{"class":219},[205,438,334],{"class":211},[205,440,442],{"class":207,"line":441},19,[205,443,340],{"class":219},[205,445,447,449,451,453,456,459,462,464,466,468,471],{"class":207,"line":446},20,[205,448,347],{"class":346},[205,450,325],{"class":219},[205,452,434],{"class":242},[205,454,455],{"class":219},"->",[205,457,458],{"class":242},"commenter_id ",[205,460,461],{"class":219},"===",[205,463,325],{"class":219},[205,465,328],{"class":242},[205,467,455],{"class":219},[205,469,470],{"class":316},"getKey",[205,472,473],{"class":219},"()\n",[205,475,477,480,482,484,486,489,491,493,495,497,500],{"class":207,"line":476},21,[205,478,479],{"class":219}," &&",[205,481,325],{"class":219},[205,483,434],{"class":242},[205,485,455],{"class":219},[205,487,488],{"class":242},"commenter_type ",[205,490,461],{"class":219},[205,492,325],{"class":219},[205,494,328],{"class":242},[205,496,455],{"class":219},[205,498,499],{"class":316},"getMorphClass",[205,501,502],{"class":219},"();\n",[205,504,506],{"class":207,"line":505},22,[205,507,356],{"class":219},[205,509,511],{"class":207,"line":510},23,[205,512,233],{"emptyLinePlaceholder":232},[205,514,516,518,520,523,525,527,529,531,533,535,537,539,541],{"class":207,"line":515},24,[205,517,310],{"class":294},[205,519,313],{"class":294},[205,521,522],{"class":316}," delete",[205,524,320],{"class":219},[205,526,281],{"class":215},[205,528,325],{"class":219},[205,530,328],{"class":242},[205,532,426],{"class":219},[205,534,429],{"class":215},[205,536,325],{"class":219},[205,538,434],{"class":242},[205,540,331],{"class":219},[205,542,334],{"class":211},[205,544,546],{"class":207,"line":545},25,[205,547,340],{"class":219},[205,549,551,553,555,557,559,561,563,565,567,569,571],{"class":207,"line":550},26,[205,552,347],{"class":346},[205,554,325],{"class":219},[205,556,434],{"class":242},[205,558,455],{"class":219},[205,560,458],{"class":242},[205,562,461],{"class":219},[205,564,325],{"class":219},[205,566,328],{"class":242},[205,568,455],{"class":219},[205,570,470],{"class":316},[205,572,473],{"class":219},[205,574,576,579,581,583,585,588,590,593,597,599],{"class":207,"line":575},27,[205,577,578],{"class":219}," ||",[205,580,325],{"class":219},[205,582,328],{"class":242},[205,584,455],{"class":219},[205,586,587],{"class":316},"hasRole",[205,589,320],{"class":219},[205,591,592],{"class":219},"'",[205,594,596],{"class":595},"sfazB","admin",[205,598,592],{"class":219},[205,600,601],{"class":219},");\n",[205,603,605],{"class":207,"line":604},28,[205,606,356],{"class":219},[205,608,610],{"class":207,"line":609},29,[205,611,233],{"emptyLinePlaceholder":232},[205,613,615,617,619,622,624,626,628,630,632,634,636,638,640],{"class":207,"line":614},30,[205,616,310],{"class":294},[205,618,313],{"class":294},[205,620,621],{"class":316}," reply",[205,623,320],{"class":219},[205,625,281],{"class":215},[205,627,325],{"class":219},[205,629,328],{"class":242},[205,631,426],{"class":219},[205,633,429],{"class":215},[205,635,325],{"class":219},[205,637,434],{"class":242},[205,639,331],{"class":219},[205,641,334],{"class":211},[205,643,645],{"class":207,"line":644},31,[205,646,340],{"class":219},[205,648,650,652,654,656,658,661],{"class":207,"line":649},32,[205,651,347],{"class":346},[205,653,325],{"class":219},[205,655,434],{"class":242},[205,657,455],{"class":219},[205,659,660],{"class":316},"canReply",[205,662,502],{"class":219},[205,664,666],{"class":207,"line":665},33,[205,667,356],{"class":219},[205,669,671],{"class":207,"line":670},34,[205,672,673],{"class":219},"}\n",[86,675,676],{},"Register it in your config:",[196,678,680],{"className":198,"code":679,"language":200,"meta":201,"style":201},"\u002F\u002F config\u002Fcomments.php\n'policy' => App\\Policies\\CustomCommentPolicy::class,\n",[90,681,682,688],{"__ignoreMap":201},[205,683,684],{"class":207,"line":208},[205,685,687],{"class":686},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[205,689,690,692,695,697,700,702,704,706,708,711,714,716],{"class":207,"line":229},[205,691,592],{"class":219},[205,693,694],{"class":595},"policy",[205,696,592],{"class":219},[205,698,699],{"class":219}," =>",[205,701,216],{"class":242},[205,703,220],{"class":219},[205,705,223],{"class":242},[205,707,220],{"class":219},[205,709,710],{"class":215},"CustomCommentPolicy",[205,712,713],{"class":219},"::",[205,715,295],{"class":211},[205,717,718],{"class":219},",\n",[81,720,722],{"id":721},"how-authorization-works","How Authorization Works",[86,724,725,726,728],{},"The Livewire components check the policy before rendering action buttons. Edit and delete buttons only appear for authorized users. Reply buttons are hidden when the thread has reached the configured ",[90,727,186],{},".",[86,730,731],{},"The policy is registered automatically by the service provider using Laravel's Gate system.",[733,734,735],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":201,"searchDepth":229,"depth":229,"links":737},[738,739,740],{"id":83,"depth":229,"text":84},{"id":190,"depth":229,"text":191},{"id":721,"depth":229,"text":722},"Control who can create, edit, delete, and reply to comments.","md",null,{},{"icon":34},{"description":747,"title":31},"Configure comment authorization policies.","fCCRQ7aUcMkopaXRI1DKtfY-lhWgiPSgiBpsNT3NomY",[750,752],{"title":26,"path":27,"stem":28,"description":751,"icon":29,"children":-1},"Configure threading, reactions, mentions, attachments, notifications, and more.",{"title":36,"path":37,"stem":38,"description":753,"icon":39,"children":-1},"User @mentions with autocomplete and notification support.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":754},["ShallowReactive",2],{"navigation_docs":3,"-essentials-authorization":75,"-essentials-authorization-surround":749},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":31,"body":77,"description":741,"extension":742,"links":743,"meta":744,"navigation":745,"path":32,"seo":746,"stem":33,"__hash__":748},"docs\u002F2.essentials\u002F2.authorization.md",{"type":78,"value":79,"toc":736},"minimark",[80,85,94,188,192,195,674,677,719,723,729,732],[81,82,84],"h2",{"id":83},"default-policy","Default Policy",[86,87,88,89,93],"p",{},"The built-in ",[90,91,92],"code",{},"CommentPolicy"," provides sensible defaults:",[95,96,97,113],"table",{},[98,99,100],"thead",{},[101,102,103,107,110],"tr",{},[104,105,106],"th",{},"Method",[104,108,109],{},"Default",[104,111,112],{},"Description",[114,115,116,132,146,159,171],"tbody",{},[101,117,118,124,129],{},[119,120,121],"td",{},[90,122,123],{},"viewAny()",[119,125,126],{},[90,127,128],{},"true",[119,130,131],{},"Everyone can view comments",[101,133,134,139,143],{},[119,135,136],{},[90,137,138],{},"create()",[119,140,141],{},[90,142,128],{},[119,144,145],{},"Everyone can create comments",[101,147,148,153,156],{},[119,149,150],{},[90,151,152],{},"update()",[119,154,155],{},"Owner only",[119,157,158],{},"Only the comment author can edit",[101,160,161,166,168],{},[119,162,163],{},[90,164,165],{},"delete()",[119,167,155],{},[119,169,170],{},"Only the comment author can delete",[101,172,173,178,181],{},[119,174,175],{},[90,176,177],{},"reply()",[119,179,180],{},"Depth check",[119,182,183,184,187],{},"Can reply if ",[90,185,186],{},"max_depth"," not exceeded",[81,189,191],{"id":190},"custom-policy","Custom Policy",[86,193,194],{},"Create your own policy to customize authorization:",[196,197,202],"pre",{"className":198,"code":199,"language":200,"meta":201,"style":201},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","namespace App\\Policies;\n\nuse Relaticle\\Comments\\Models\\Comment;\nuse Relaticle\\Comments\\Contracts\\Commentator;\n\nclass CustomCommentPolicy\n{\n public function viewAny(Commentator $user): bool\n {\n return true;\n }\n\n public function create(Commentator $user): bool\n {\n return true;\n }\n\n public function update(Commentator $user, Comment $comment): bool\n {\n return $comment->commenter_id === $user->getKey()\n && $comment->commenter_type === $user->getMorphClass();\n }\n\n public function delete(Commentator $user, Comment $comment): bool\n {\n return $comment->commenter_id === $user->getKey()\n || $user->hasRole('admin');\n }\n\n public function reply(Commentator $user, Comment $comment): bool\n {\n return $comment->canReply();\n }\n}\n","php","",[90,203,204,227,234,261,284,289,299,305,335,341,351,357,362,384,389,396,401,406,439,444,474,503,508,513,543,548,573,602,607,612,642,647,663,668],{"__ignoreMap":201},[205,206,209,213,217,221,224],"span",{"class":207,"line":208},"line",1,[205,210,212],{"class":211},"sbssI","namespace",[205,214,216],{"class":215},"sBMFI"," App",[205,218,220],{"class":219},"sMK4o","\\",[205,222,223],{"class":215},"Policies",[205,225,226],{"class":219},";\n",[205,228,230],{"class":207,"line":229},2,[205,231,233],{"emptyLinePlaceholder":232},true,"\n",[205,235,237,240,244,246,249,251,254,256,259],{"class":207,"line":236},3,[205,238,239],{"class":211},"use",[205,241,243],{"class":242},"sTEyZ"," Relaticle",[205,245,220],{"class":219},[205,247,248],{"class":242},"Comments",[205,250,220],{"class":219},[205,252,253],{"class":242},"Models",[205,255,220],{"class":219},[205,257,258],{"class":242},"Comment",[205,260,226],{"class":219},[205,262,264,266,268,270,272,274,277,279,282],{"class":207,"line":263},4,[205,265,239],{"class":211},[205,267,243],{"class":242},[205,269,220],{"class":219},[205,271,248],{"class":242},[205,273,220],{"class":219},[205,275,276],{"class":242},"Contracts",[205,278,220],{"class":219},[205,280,281],{"class":242},"Commentator",[205,283,226],{"class":219},[205,285,287],{"class":207,"line":286},5,[205,288,233],{"emptyLinePlaceholder":232},[205,290,292,296],{"class":207,"line":291},6,[205,293,295],{"class":294},"spNyl","class",[205,297,298],{"class":215}," CustomCommentPolicy\n",[205,300,302],{"class":207,"line":301},7,[205,303,304],{"class":219},"{\n",[205,306,308,311,314,318,321,323,326,329,332],{"class":207,"line":307},8,[205,309,310],{"class":294}," public",[205,312,313],{"class":294}," function",[205,315,317],{"class":316},"s2Zo4"," viewAny",[205,319,320],{"class":219},"(",[205,322,281],{"class":215},[205,324,325],{"class":219}," $",[205,327,328],{"class":242},"user",[205,330,331],{"class":219},"):",[205,333,334],{"class":211}," bool\n",[205,336,338],{"class":207,"line":337},9,[205,339,340],{"class":219}," {\n",[205,342,344,348],{"class":207,"line":343},10,[205,345,347],{"class":346},"s7zQu"," return",[205,349,350],{"class":219}," true;\n",[205,352,354],{"class":207,"line":353},11,[205,355,356],{"class":219}," }\n",[205,358,360],{"class":207,"line":359},12,[205,361,233],{"emptyLinePlaceholder":232},[205,363,365,367,369,372,374,376,378,380,382],{"class":207,"line":364},13,[205,366,310],{"class":294},[205,368,313],{"class":294},[205,370,371],{"class":316}," create",[205,373,320],{"class":219},[205,375,281],{"class":215},[205,377,325],{"class":219},[205,379,328],{"class":242},[205,381,331],{"class":219},[205,383,334],{"class":211},[205,385,387],{"class":207,"line":386},14,[205,388,340],{"class":219},[205,390,392,394],{"class":207,"line":391},15,[205,393,347],{"class":346},[205,395,350],{"class":219},[205,397,399],{"class":207,"line":398},16,[205,400,356],{"class":219},[205,402,404],{"class":207,"line":403},17,[205,405,233],{"emptyLinePlaceholder":232},[205,407,409,411,413,416,418,420,422,424,427,430,432,435,437],{"class":207,"line":408},18,[205,410,310],{"class":294},[205,412,313],{"class":294},[205,414,415],{"class":316}," update",[205,417,320],{"class":219},[205,419,281],{"class":215},[205,421,325],{"class":219},[205,423,328],{"class":242},[205,425,426],{"class":219},",",[205,428,429],{"class":215}," Comment",[205,431,325],{"class":219},[205,433,434],{"class":242},"comment",[205,436,331],{"class":219},[205,438,334],{"class":211},[205,440,442],{"class":207,"line":441},19,[205,443,340],{"class":219},[205,445,447,449,451,453,456,459,462,464,466,468,471],{"class":207,"line":446},20,[205,448,347],{"class":346},[205,450,325],{"class":219},[205,452,434],{"class":242},[205,454,455],{"class":219},"->",[205,457,458],{"class":242},"commenter_id ",[205,460,461],{"class":219},"===",[205,463,325],{"class":219},[205,465,328],{"class":242},[205,467,455],{"class":219},[205,469,470],{"class":316},"getKey",[205,472,473],{"class":219},"()\n",[205,475,477,480,482,484,486,489,491,493,495,497,500],{"class":207,"line":476},21,[205,478,479],{"class":219}," &&",[205,481,325],{"class":219},[205,483,434],{"class":242},[205,485,455],{"class":219},[205,487,488],{"class":242},"commenter_type ",[205,490,461],{"class":219},[205,492,325],{"class":219},[205,494,328],{"class":242},[205,496,455],{"class":219},[205,498,499],{"class":316},"getMorphClass",[205,501,502],{"class":219},"();\n",[205,504,506],{"class":207,"line":505},22,[205,507,356],{"class":219},[205,509,511],{"class":207,"line":510},23,[205,512,233],{"emptyLinePlaceholder":232},[205,514,516,518,520,523,525,527,529,531,533,535,537,539,541],{"class":207,"line":515},24,[205,517,310],{"class":294},[205,519,313],{"class":294},[205,521,522],{"class":316}," delete",[205,524,320],{"class":219},[205,526,281],{"class":215},[205,528,325],{"class":219},[205,530,328],{"class":242},[205,532,426],{"class":219},[205,534,429],{"class":215},[205,536,325],{"class":219},[205,538,434],{"class":242},[205,540,331],{"class":219},[205,542,334],{"class":211},[205,544,546],{"class":207,"line":545},25,[205,547,340],{"class":219},[205,549,551,553,555,557,559,561,563,565,567,569,571],{"class":207,"line":550},26,[205,552,347],{"class":346},[205,554,325],{"class":219},[205,556,434],{"class":242},[205,558,455],{"class":219},[205,560,458],{"class":242},[205,562,461],{"class":219},[205,564,325],{"class":219},[205,566,328],{"class":242},[205,568,455],{"class":219},[205,570,470],{"class":316},[205,572,473],{"class":219},[205,574,576,579,581,583,585,588,590,593,597,599],{"class":207,"line":575},27,[205,577,578],{"class":219}," ||",[205,580,325],{"class":219},[205,582,328],{"class":242},[205,584,455],{"class":219},[205,586,587],{"class":316},"hasRole",[205,589,320],{"class":219},[205,591,592],{"class":219},"'",[205,594,596],{"class":595},"sfazB","admin",[205,598,592],{"class":219},[205,600,601],{"class":219},");\n",[205,603,605],{"class":207,"line":604},28,[205,606,356],{"class":219},[205,608,610],{"class":207,"line":609},29,[205,611,233],{"emptyLinePlaceholder":232},[205,613,615,617,619,622,624,626,628,630,632,634,636,638,640],{"class":207,"line":614},30,[205,616,310],{"class":294},[205,618,313],{"class":294},[205,620,621],{"class":316}," reply",[205,623,320],{"class":219},[205,625,281],{"class":215},[205,627,325],{"class":219},[205,629,328],{"class":242},[205,631,426],{"class":219},[205,633,429],{"class":215},[205,635,325],{"class":219},[205,637,434],{"class":242},[205,639,331],{"class":219},[205,641,334],{"class":211},[205,643,645],{"class":207,"line":644},31,[205,646,340],{"class":219},[205,648,650,652,654,656,658,661],{"class":207,"line":649},32,[205,651,347],{"class":346},[205,653,325],{"class":219},[205,655,434],{"class":242},[205,657,455],{"class":219},[205,659,660],{"class":316},"canReply",[205,662,502],{"class":219},[205,664,666],{"class":207,"line":665},33,[205,667,356],{"class":219},[205,669,671],{"class":207,"line":670},34,[205,672,673],{"class":219},"}\n",[86,675,676],{},"Register it in your config:",[196,678,680],{"className":198,"code":679,"language":200,"meta":201,"style":201},"\u002F\u002F config\u002Fcomments.php\n'policy' => App\\Policies\\CustomCommentPolicy::class,\n",[90,681,682,688],{"__ignoreMap":201},[205,683,684],{"class":207,"line":208},[205,685,687],{"class":686},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[205,689,690,692,695,697,700,702,704,706,708,711,714,716],{"class":207,"line":229},[205,691,592],{"class":219},[205,693,694],{"class":595},"policy",[205,696,592],{"class":219},[205,698,699],{"class":219}," =>",[205,701,216],{"class":242},[205,703,220],{"class":219},[205,705,223],{"class":242},[205,707,220],{"class":219},[205,709,710],{"class":215},"CustomCommentPolicy",[205,712,713],{"class":219},"::",[205,715,295],{"class":211},[205,717,718],{"class":219},",\n",[81,720,722],{"id":721},"how-authorization-works","How Authorization Works",[86,724,725,726,728],{},"The Livewire components check the policy before rendering action buttons. Edit and delete buttons only appear for authorized users. Reply buttons are hidden when the thread has reached the configured ",[90,727,186],{},".",[86,730,731],{},"The policy is registered automatically by the service provider using Laravel's Gate system.",[733,734,735],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":201,"searchDepth":229,"depth":229,"links":737},[738,739,740],{"id":83,"depth":229,"text":84},{"id":190,"depth":229,"text":191},{"id":721,"depth":229,"text":722},"Control who can create, edit, delete, and reply to comments.","md",null,{},{"icon":34},{"description":747,"title":31},"Configure comment authorization policies.","fCCRQ7aUcMkopaXRI1DKtfY-lhWgiPSgiBpsNT3NomY",[750,752],{"title":26,"path":27,"stem":28,"description":751,"icon":29,"children":-1},"Configure threading, reactions, mentions, attachments, notifications, and more.",{"title":36,"path":37,"stem":38,"description":753,"icon":39,"children":-1},"User @mentions with autocomplete and notification support.",1774619385139] \ No newline at end of file diff --git a/essentials/configuration.html b/essentials/configuration.html index b698ecd..35069ed 100644 --- a/essentials/configuration.html +++ b/essentials/configuration.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Configuration - Comments
Comments Logo
1.x
Essentials

Configuration

Configure threading, reactions, mentions, attachments, notifications, and more.

Publish the configuration file:

php artisan vendor:publish --tag=comments-config
+}Configuration - Comments
Comments Logo
1.x
Essentials

Configuration

Configure threading, reactions, mentions, attachments, notifications, and more.

Publish the configuration file:

php artisan vendor:publish --tag=comments-config
 

This creates config/comments.php with all available options.

Table Names

'table_names' => [
     'comments' => 'comments',
     'reactions' => 'comment_reactions',
@@ -176,4 +176,4 @@
 CommentsConfig::resolveAuthenticatedUserUsing(function () {
     return auth()->user();
 });
-

This is useful for multi-guard applications or custom authentication flows.

Copyright © 2026
\ No newline at end of file +

This is useful for multi-guard applications or custom authentication flows.

Copyright © 2026
\ No newline at end of file diff --git a/essentials/configuration/_payload.json b/essentials/configuration/_payload.json index 8639d11..05b6fde 100644 --- a/essentials/configuration/_payload.json +++ b/essentials/configuration/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":1521},["ShallowReactive",2],{"navigation_docs":3,"-essentials-configuration":75,"-essentials-configuration-surround":1516},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":26,"body":77,"description":1508,"extension":1509,"links":1510,"meta":1511,"navigation":1512,"path":27,"seo":1513,"stem":28,"__hash__":1515},"docs\u002F2.essentials\u002F1.configuration.md",{"type":78,"value":79,"toc":1491},"minimark",[80,84,113,120,125,261,264,268,328,332,449,452,456,495,502,506,543,554,558,595,598,600,765,768,770,841,847,851,967,970,973,1031,1045,1048,1082,1085,1087,1270,1281,1285,1338,1345,1349,1390,1397,1401,1404,1484,1487],[81,82,83],"p",{},"Publish the configuration file:",[85,86,91],"pre",{"className":87,"code":88,"language":89,"meta":90,"style":90},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","php artisan vendor:publish --tag=comments-config\n","bash","",[92,93,94],"code",{"__ignoreMap":90},[95,96,99,103,107,110],"span",{"class":97,"line":98},"line",1,[95,100,102],{"class":101},"sBMFI","php",[95,104,106],{"class":105},"sfazB"," artisan",[95,108,109],{"class":105}," vendor:publish",[95,111,112],{"class":105}," --tag=comments-config\n",[81,114,115,116,119],{},"This creates ",[92,117,118],{},"config\u002Fcomments.php"," with all available options.",[121,122,124],"h2",{"id":123},"table-names","Table Names",[85,126,129],{"className":127,"code":128,"language":102,"meta":90,"style":90},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","'table_names' => [\n 'comments' => 'comments',\n 'reactions' => 'comment_reactions',\n 'mentions' => 'comment_mentions',\n 'subscriptions' => 'comment_subscriptions',\n 'attachments' => 'comment_attachments',\n],\n",[92,130,131,148,171,192,213,234,255],{"__ignoreMap":90},[95,132,133,137,140,142,145],{"class":97,"line":98},[95,134,136],{"class":135},"sMK4o","'",[95,138,139],{"class":105},"table_names",[95,141,136],{"class":135},[95,143,144],{"class":135}," =>",[95,146,147],{"class":135}," [\n",[95,149,151,154,157,159,161,164,166,168],{"class":97,"line":150},2,[95,152,153],{"class":135}," '",[95,155,156],{"class":105},"comments",[95,158,136],{"class":135},[95,160,144],{"class":135},[95,162,163],{"class":135}," '",[95,165,156],{"class":105},[95,167,136],{"class":135},[95,169,170],{"class":135},",\n",[95,172,174,176,179,181,183,185,188,190],{"class":97,"line":173},3,[95,175,153],{"class":135},[95,177,178],{"class":105},"reactions",[95,180,136],{"class":135},[95,182,144],{"class":135},[95,184,163],{"class":135},[95,186,187],{"class":105},"comment_reactions",[95,189,136],{"class":135},[95,191,170],{"class":135},[95,193,195,197,200,202,204,206,209,211],{"class":97,"line":194},4,[95,196,153],{"class":135},[95,198,199],{"class":105},"mentions",[95,201,136],{"class":135},[95,203,144],{"class":135},[95,205,163],{"class":135},[95,207,208],{"class":105},"comment_mentions",[95,210,136],{"class":135},[95,212,170],{"class":135},[95,214,216,218,221,223,225,227,230,232],{"class":97,"line":215},5,[95,217,153],{"class":135},[95,219,220],{"class":105},"subscriptions",[95,222,136],{"class":135},[95,224,144],{"class":135},[95,226,163],{"class":135},[95,228,229],{"class":105},"comment_subscriptions",[95,231,136],{"class":135},[95,233,170],{"class":135},[95,235,237,239,242,244,246,248,251,253],{"class":97,"line":236},6,[95,238,153],{"class":135},[95,240,241],{"class":105},"attachments",[95,243,136],{"class":135},[95,245,144],{"class":135},[95,247,163],{"class":135},[95,249,250],{"class":105},"comment_attachments",[95,252,136],{"class":135},[95,254,170],{"class":135},[95,256,258],{"class":97,"line":257},7,[95,259,260],{"class":135},"],\n",[81,262,263],{},"Change the table names if they conflict with your application.",[121,265,267],{"id":266},"column-names","Column Names",[85,269,271],{"className":127,"code":270,"language":102,"meta":90,"style":90},"'column_names' => [\n 'commenter_id' => 'commenter_id',\n 'commenter_type' => 'commenter_type',\n],\n",[92,272,273,286,305,324],{"__ignoreMap":90},[95,274,275,277,280,282,284],{"class":97,"line":98},[95,276,136],{"class":135},[95,278,279],{"class":105},"column_names",[95,281,136],{"class":135},[95,283,144],{"class":135},[95,285,147],{"class":135},[95,287,288,290,293,295,297,299,301,303],{"class":97,"line":150},[95,289,153],{"class":135},[95,291,292],{"class":105},"commenter_id",[95,294,136],{"class":135},[95,296,144],{"class":135},[95,298,163],{"class":135},[95,300,292],{"class":105},[95,302,136],{"class":135},[95,304,170],{"class":135},[95,306,307,309,312,314,316,318,320,322],{"class":97,"line":173},[95,308,153],{"class":135},[95,310,311],{"class":105},"commenter_type",[95,313,136],{"class":135},[95,315,144],{"class":135},[95,317,163],{"class":135},[95,319,311],{"class":105},[95,321,136],{"class":135},[95,323,170],{"class":135},[95,325,326],{"class":97,"line":194},[95,327,260],{"class":135},[121,329,331],{"id":330},"models","Models",[85,333,335],{"className":127,"code":334,"language":102,"meta":90,"style":90},"'models' => [\n 'comment' => \\Relaticle\\Comments\\Models\\Comment::class,\n],\n\n'commenter' => [\n 'model' => \\App\\Models\\User::class,\n],\n",[92,336,337,349,391,395,401,414,445],{"__ignoreMap":90},[95,338,339,341,343,345,347],{"class":97,"line":98},[95,340,136],{"class":135},[95,342,330],{"class":105},[95,344,136],{"class":135},[95,346,144],{"class":135},[95,348,147],{"class":135},[95,350,351,353,356,358,360,363,367,370,373,375,377,379,382,385,389],{"class":97,"line":150},[95,352,153],{"class":135},[95,354,355],{"class":105},"comment",[95,357,136],{"class":135},[95,359,144],{"class":135},[95,361,362],{"class":135}," \\",[95,364,366],{"class":365},"sTEyZ","Relaticle",[95,368,369],{"class":135},"\\",[95,371,372],{"class":365},"Comments",[95,374,369],{"class":135},[95,376,331],{"class":365},[95,378,369],{"class":135},[95,380,381],{"class":101},"Comment",[95,383,384],{"class":135},"::",[95,386,388],{"class":387},"sbssI","class",[95,390,170],{"class":135},[95,392,393],{"class":97,"line":173},[95,394,260],{"class":135},[95,396,397],{"class":97,"line":194},[95,398,400],{"emptyLinePlaceholder":399},true,"\n",[95,402,403,405,408,410,412],{"class":97,"line":215},[95,404,136],{"class":135},[95,406,407],{"class":105},"commenter",[95,409,136],{"class":135},[95,411,144],{"class":135},[95,413,147],{"class":135},[95,415,416,418,421,423,425,427,430,432,434,436,439,441,443],{"class":97,"line":236},[95,417,153],{"class":135},[95,419,420],{"class":105},"model",[95,422,136],{"class":135},[95,424,144],{"class":135},[95,426,362],{"class":135},[95,428,429],{"class":365},"App",[95,431,369],{"class":135},[95,433,331],{"class":365},[95,435,369],{"class":135},[95,437,438],{"class":101},"User",[95,440,384],{"class":135},[95,442,388],{"class":387},[95,444,170],{"class":135},[95,446,447],{"class":97,"line":257},[95,448,260],{"class":135},[81,450,451],{},"Override the Comment model to add custom behavior. The commenter model defines which class represents the user who comments.",[121,453,455],{"id":454},"policy","Policy",[85,457,459],{"className":127,"code":458,"language":102,"meta":90,"style":90},"'policy' => \\Relaticle\\Comments\\Policies\\CommentPolicy::class,\n",[92,460,461],{"__ignoreMap":90},[95,462,463,465,467,469,471,473,475,477,479,481,484,486,489,491,493],{"class":97,"line":98},[95,464,136],{"class":135},[95,466,454],{"class":105},[95,468,136],{"class":135},[95,470,144],{"class":135},[95,472,362],{"class":135},[95,474,366],{"class":365},[95,476,369],{"class":135},[95,478,372],{"class":365},[95,480,369],{"class":135},[95,482,483],{"class":365},"Policies",[95,485,369],{"class":135},[95,487,488],{"class":101},"CommentPolicy",[95,490,384],{"class":135},[95,492,388],{"class":387},[95,494,170],{"class":135},[81,496,497,498,501],{},"See the ",[499,500,31],"a",{"href":32}," page for customization details.",[121,503,505],{"id":504},"threading","Threading",[85,507,509],{"className":127,"code":508,"language":102,"meta":90,"style":90},"'threading' => [\n 'max_depth' => 2,\n],\n",[92,510,511,523,539],{"__ignoreMap":90},[95,512,513,515,517,519,521],{"class":97,"line":98},[95,514,136],{"class":135},[95,516,504],{"class":105},[95,518,136],{"class":135},[95,520,144],{"class":135},[95,522,147],{"class":135},[95,524,525,527,530,532,534,537],{"class":97,"line":150},[95,526,153],{"class":135},[95,528,529],{"class":105},"max_depth",[95,531,136],{"class":135},[95,533,144],{"class":135},[95,535,536],{"class":387}," 2",[95,538,170],{"class":135},[95,540,541],{"class":97,"line":173},[95,542,260],{"class":135},[81,544,545,546,549,550,553],{},"Controls how many levels of nested replies are allowed. A depth of ",[92,547,548],{},"2"," means top-level comments and one level of replies. Set to ",[92,551,552],{},"1"," to disable replies entirely.",[121,555,557],{"id":556},"pagination","Pagination",[85,559,561],{"className":127,"code":560,"language":102,"meta":90,"style":90},"'pagination' => [\n 'per_page' => 10,\n],\n",[92,562,563,575,591],{"__ignoreMap":90},[95,564,565,567,569,571,573],{"class":97,"line":98},[95,566,136],{"class":135},[95,568,556],{"class":105},[95,570,136],{"class":135},[95,572,144],{"class":135},[95,574,147],{"class":135},[95,576,577,579,582,584,586,589],{"class":97,"line":150},[95,578,153],{"class":135},[95,580,581],{"class":105},"per_page",[95,583,136],{"class":135},[95,585,144],{"class":135},[95,587,588],{"class":387}," 10",[95,590,170],{"class":135},[95,592,593],{"class":97,"line":173},[95,594,260],{"class":135},[81,596,597],{},"Number of comments loaded initially and per \"Load More\" click.",[121,599,41],{"id":178},[85,601,603],{"className":127,"code":602,"language":102,"meta":90,"style":90},"'reactions' => [\n 'emoji_set' => [\n 'thumbs_up' => \"\\u{1F44D}\",\n 'heart' => \"\\u{2764}\\u{FE0F}\",\n 'celebrate' => \"\\u{1F389}\",\n 'laugh' => \"\\u{1F604}\",\n 'thinking' => \"\\u{1F914}\",\n 'sad' => \"\\u{1F622}\",\n ],\n],\n",[92,604,605,617,630,653,673,693,713,733,754,760],{"__ignoreMap":90},[95,606,607,609,611,613,615],{"class":97,"line":98},[95,608,136],{"class":135},[95,610,178],{"class":105},[95,612,136],{"class":135},[95,614,144],{"class":135},[95,616,147],{"class":135},[95,618,619,621,624,626,628],{"class":97,"line":150},[95,620,153],{"class":135},[95,622,623],{"class":105},"emoji_set",[95,625,136],{"class":135},[95,627,144],{"class":135},[95,629,147],{"class":135},[95,631,632,635,638,640,642,645,648,651],{"class":97,"line":173},[95,633,634],{"class":135}," '",[95,636,637],{"class":105},"thumbs_up",[95,639,136],{"class":135},[95,641,144],{"class":135},[95,643,644],{"class":135}," \"",[95,646,647],{"class":365},"\\u{1F44D}",[95,649,650],{"class":135},"\"",[95,652,170],{"class":135},[95,654,655,657,660,662,664,666,669,671],{"class":97,"line":194},[95,656,634],{"class":135},[95,658,659],{"class":105},"heart",[95,661,136],{"class":135},[95,663,144],{"class":135},[95,665,644],{"class":135},[95,667,668],{"class":365},"\\u{2764}\\u{FE0F}",[95,670,650],{"class":135},[95,672,170],{"class":135},[95,674,675,677,680,682,684,686,689,691],{"class":97,"line":215},[95,676,634],{"class":135},[95,678,679],{"class":105},"celebrate",[95,681,136],{"class":135},[95,683,144],{"class":135},[95,685,644],{"class":135},[95,687,688],{"class":365},"\\u{1F389}",[95,690,650],{"class":135},[95,692,170],{"class":135},[95,694,695,697,700,702,704,706,709,711],{"class":97,"line":236},[95,696,634],{"class":135},[95,698,699],{"class":105},"laugh",[95,701,136],{"class":135},[95,703,144],{"class":135},[95,705,644],{"class":135},[95,707,708],{"class":365},"\\u{1F604}",[95,710,650],{"class":135},[95,712,170],{"class":135},[95,714,715,717,720,722,724,726,729,731],{"class":97,"line":257},[95,716,634],{"class":135},[95,718,719],{"class":105},"thinking",[95,721,136],{"class":135},[95,723,144],{"class":135},[95,725,644],{"class":135},[95,727,728],{"class":365},"\\u{1F914}",[95,730,650],{"class":135},[95,732,170],{"class":135},[95,734,736,738,741,743,745,747,750,752],{"class":97,"line":735},8,[95,737,634],{"class":135},[95,739,740],{"class":105},"sad",[95,742,136],{"class":135},[95,744,144],{"class":135},[95,746,644],{"class":135},[95,748,749],{"class":365},"\\u{1F622}",[95,751,650],{"class":135},[95,753,170],{"class":135},[95,755,757],{"class":97,"line":756},9,[95,758,759],{"class":135}," ],\n",[95,761,763],{"class":97,"line":762},10,[95,764,260],{"class":135},[81,766,767],{},"Customize the available emoji reactions. Keys are used as identifiers in the database, values are the displayed emoji characters.",[121,769,36],{"id":199},[85,771,773],{"className":127,"code":772,"language":102,"meta":90,"style":90},"'mentions' => [\n 'resolver' => \\Relaticle\\Comments\\Mentions\\DefaultMentionResolver::class,\n 'max_results' => 5,\n],\n",[92,774,775,787,821,837],{"__ignoreMap":90},[95,776,777,779,781,783,785],{"class":97,"line":98},[95,778,136],{"class":135},[95,780,199],{"class":105},[95,782,136],{"class":135},[95,784,144],{"class":135},[95,786,147],{"class":135},[95,788,789,791,794,796,798,800,802,804,806,808,810,812,815,817,819],{"class":97,"line":150},[95,790,153],{"class":135},[95,792,793],{"class":105},"resolver",[95,795,136],{"class":135},[95,797,144],{"class":135},[95,799,362],{"class":135},[95,801,366],{"class":365},[95,803,369],{"class":135},[95,805,372],{"class":365},[95,807,369],{"class":135},[95,809,36],{"class":365},[95,811,369],{"class":135},[95,813,814],{"class":101},"DefaultMentionResolver",[95,816,384],{"class":135},[95,818,388],{"class":387},[95,820,170],{"class":135},[95,822,823,825,828,830,832,835],{"class":97,"line":173},[95,824,153],{"class":135},[95,826,827],{"class":105},"max_results",[95,829,136],{"class":135},[95,831,144],{"class":135},[95,833,834],{"class":387}," 5",[95,836,170],{"class":135},[95,838,839],{"class":97,"line":194},[95,840,260],{"class":135},[81,842,843,844,846],{},"The resolver handles searching for users during @mention autocomplete. See the ",[499,845,36],{"href":37}," page for creating a custom resolver.",[121,848,850],{"id":849},"editor-toolbar","Editor Toolbar",[85,852,854],{"className":127,"code":853,"language":102,"meta":90,"style":90},"'editor' => [\n 'toolbar' => [\n ['bold', 'italic', 'strike', 'link'],\n ['bulletList', 'orderedList'],\n ['codeBlock'],\n ],\n],\n",[92,855,856,869,882,924,946,959,963],{"__ignoreMap":90},[95,857,858,860,863,865,867],{"class":97,"line":98},[95,859,136],{"class":135},[95,861,862],{"class":105},"editor",[95,864,136],{"class":135},[95,866,144],{"class":135},[95,868,147],{"class":135},[95,870,871,873,876,878,880],{"class":97,"line":150},[95,872,153],{"class":135},[95,874,875],{"class":105},"toolbar",[95,877,136],{"class":135},[95,879,144],{"class":135},[95,881,147],{"class":135},[95,883,884,887,889,892,894,897,899,902,904,906,908,911,913,915,917,920,922],{"class":97,"line":173},[95,885,886],{"class":135}," [",[95,888,136],{"class":135},[95,890,891],{"class":105},"bold",[95,893,136],{"class":135},[95,895,896],{"class":135},",",[95,898,163],{"class":135},[95,900,901],{"class":105},"italic",[95,903,136],{"class":135},[95,905,896],{"class":135},[95,907,163],{"class":135},[95,909,910],{"class":105},"strike",[95,912,136],{"class":135},[95,914,896],{"class":135},[95,916,163],{"class":135},[95,918,919],{"class":105},"link",[95,921,136],{"class":135},[95,923,260],{"class":135},[95,925,926,928,930,933,935,937,939,942,944],{"class":97,"line":194},[95,927,886],{"class":135},[95,929,136],{"class":135},[95,931,932],{"class":105},"bulletList",[95,934,136],{"class":135},[95,936,896],{"class":135},[95,938,163],{"class":135},[95,940,941],{"class":105},"orderedList",[95,943,136],{"class":135},[95,945,260],{"class":135},[95,947,948,950,952,955,957],{"class":97,"line":215},[95,949,886],{"class":135},[95,951,136],{"class":135},[95,953,954],{"class":105},"codeBlock",[95,956,136],{"class":135},[95,958,260],{"class":135},[95,960,961],{"class":97,"line":236},[95,962,759],{"class":135},[95,964,965],{"class":97,"line":257},[95,966,260],{"class":135},[81,968,969],{},"Defines which formatting buttons appear in the comment editor. Groups create visual separators in the toolbar.",[121,971,51],{"id":972},"notifications",[85,974,976],{"className":127,"code":975,"language":102,"meta":90,"style":90},"'notifications' => [\n 'channels' => ['database'],\n 'enabled' => true,\n],\n",[92,977,978,990,1013,1027],{"__ignoreMap":90},[95,979,980,982,984,986,988],{"class":97,"line":98},[95,981,136],{"class":135},[95,983,972],{"class":105},[95,985,136],{"class":135},[95,987,144],{"class":135},[95,989,147],{"class":135},[95,991,992,994,997,999,1001,1004,1006,1009,1011],{"class":97,"line":150},[95,993,153],{"class":135},[95,995,996],{"class":105},"channels",[95,998,136],{"class":135},[95,1000,144],{"class":135},[95,1002,1003],{"class":135}," [",[95,1005,136],{"class":135},[95,1007,1008],{"class":105},"database",[95,1010,136],{"class":135},[95,1012,260],{"class":135},[95,1014,1015,1017,1020,1022,1024],{"class":97,"line":173},[95,1016,153],{"class":135},[95,1018,1019],{"class":105},"enabled",[95,1021,136],{"class":135},[95,1023,144],{"class":135},[95,1025,1026],{"class":135}," true,\n",[95,1028,1029],{"class":97,"line":194},[95,1030,260],{"class":135},[81,1032,1033,1034,1037,1038,1040,1041,1044],{},"Add ",[92,1035,1036],{},"'mail'"," to the channels array to send email notifications. Set ",[92,1039,1019],{}," to ",[92,1042,1043],{},"false"," to disable all notifications.",[121,1046,1047],{"id":220},"Subscriptions",[85,1049,1051],{"className":127,"code":1050,"language":102,"meta":90,"style":90},"'subscriptions' => [\n 'auto_subscribe' => true,\n],\n",[92,1052,1053,1065,1078],{"__ignoreMap":90},[95,1054,1055,1057,1059,1061,1063],{"class":97,"line":98},[95,1056,136],{"class":135},[95,1058,220],{"class":105},[95,1060,136],{"class":135},[95,1062,144],{"class":135},[95,1064,147],{"class":135},[95,1066,1067,1069,1072,1074,1076],{"class":97,"line":150},[95,1068,153],{"class":135},[95,1070,1071],{"class":105},"auto_subscribe",[95,1073,136],{"class":135},[95,1075,144],{"class":135},[95,1077,1026],{"class":135},[95,1079,1080],{"class":97,"line":173},[95,1081,260],{"class":135},[81,1083,1084],{},"When enabled, users are automatically subscribed to a thread when they create a comment or are mentioned. They receive notifications for subsequent replies.",[121,1086,46],{"id":241},[85,1088,1090],{"className":127,"code":1089,"language":102,"meta":90,"style":90},"'attachments' => [\n 'enabled' => true,\n 'disk' => 'public',\n 'max_size' => 10240, \u002F\u002F KB\n 'allowed_types' => [\n 'image\u002Fjpeg',\n 'image\u002Fpng',\n 'image\u002Fgif',\n 'image\u002Fwebp',\n 'application\u002Fpdf',\n 'text\u002Fplain',\n 'application\u002Fmsword',\n 'application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document',\n ],\n],\n",[92,1091,1092,1104,1116,1136,1156,1169,1180,1191,1202,1213,1224,1236,1248,1260,1265],{"__ignoreMap":90},[95,1093,1094,1096,1098,1100,1102],{"class":97,"line":98},[95,1095,136],{"class":135},[95,1097,241],{"class":105},[95,1099,136],{"class":135},[95,1101,144],{"class":135},[95,1103,147],{"class":135},[95,1105,1106,1108,1110,1112,1114],{"class":97,"line":150},[95,1107,153],{"class":135},[95,1109,1019],{"class":105},[95,1111,136],{"class":135},[95,1113,144],{"class":135},[95,1115,1026],{"class":135},[95,1117,1118,1120,1123,1125,1127,1129,1132,1134],{"class":97,"line":173},[95,1119,153],{"class":135},[95,1121,1122],{"class":105},"disk",[95,1124,136],{"class":135},[95,1126,144],{"class":135},[95,1128,163],{"class":135},[95,1130,1131],{"class":105},"public",[95,1133,136],{"class":135},[95,1135,170],{"class":135},[95,1137,1138,1140,1143,1145,1147,1150,1152],{"class":97,"line":194},[95,1139,153],{"class":135},[95,1141,1142],{"class":105},"max_size",[95,1144,136],{"class":135},[95,1146,144],{"class":135},[95,1148,1149],{"class":387}," 10240",[95,1151,896],{"class":135},[95,1153,1155],{"class":1154},"sHwdD"," \u002F\u002F KB\n",[95,1157,1158,1160,1163,1165,1167],{"class":97,"line":215},[95,1159,153],{"class":135},[95,1161,1162],{"class":105},"allowed_types",[95,1164,136],{"class":135},[95,1166,144],{"class":135},[95,1168,147],{"class":135},[95,1170,1171,1173,1176,1178],{"class":97,"line":236},[95,1172,634],{"class":135},[95,1174,1175],{"class":105},"image\u002Fjpeg",[95,1177,136],{"class":135},[95,1179,170],{"class":135},[95,1181,1182,1184,1187,1189],{"class":97,"line":257},[95,1183,634],{"class":135},[95,1185,1186],{"class":105},"image\u002Fpng",[95,1188,136],{"class":135},[95,1190,170],{"class":135},[95,1192,1193,1195,1198,1200],{"class":97,"line":735},[95,1194,634],{"class":135},[95,1196,1197],{"class":105},"image\u002Fgif",[95,1199,136],{"class":135},[95,1201,170],{"class":135},[95,1203,1204,1206,1209,1211],{"class":97,"line":756},[95,1205,634],{"class":135},[95,1207,1208],{"class":105},"image\u002Fwebp",[95,1210,136],{"class":135},[95,1212,170],{"class":135},[95,1214,1215,1217,1220,1222],{"class":97,"line":762},[95,1216,634],{"class":135},[95,1218,1219],{"class":105},"application\u002Fpdf",[95,1221,136],{"class":135},[95,1223,170],{"class":135},[95,1225,1227,1229,1232,1234],{"class":97,"line":1226},11,[95,1228,634],{"class":135},[95,1230,1231],{"class":105},"text\u002Fplain",[95,1233,136],{"class":135},[95,1235,170],{"class":135},[95,1237,1239,1241,1244,1246],{"class":97,"line":1238},12,[95,1240,634],{"class":135},[95,1242,1243],{"class":105},"application\u002Fmsword",[95,1245,136],{"class":135},[95,1247,170],{"class":135},[95,1249,1251,1253,1256,1258],{"class":97,"line":1250},13,[95,1252,634],{"class":135},[95,1254,1255],{"class":105},"application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document",[95,1257,136],{"class":135},[95,1259,170],{"class":135},[95,1261,1263],{"class":97,"line":1262},14,[95,1264,759],{"class":135},[95,1266,1268],{"class":97,"line":1267},15,[95,1269,260],{"class":135},[81,1271,1272,1273,1040,1275,1277,1278,1280],{},"Controls file upload behavior. Set ",[92,1274,1019],{},[92,1276,1043],{}," to remove the attachment UI entirely. The ",[92,1279,1142],{}," is in kilobytes (default 10 MB).",[121,1282,1284],{"id":1283},"broadcasting","Broadcasting",[85,1286,1288],{"className":127,"code":1287,"language":102,"meta":90,"style":90},"'broadcasting' => [\n 'enabled' => false,\n 'channel_prefix' => 'comments',\n],\n",[92,1289,1290,1302,1315,1334],{"__ignoreMap":90},[95,1291,1292,1294,1296,1298,1300],{"class":97,"line":98},[95,1293,136],{"class":135},[95,1295,1283],{"class":105},[95,1297,136],{"class":135},[95,1299,144],{"class":135},[95,1301,147],{"class":135},[95,1303,1304,1306,1308,1310,1312],{"class":97,"line":150},[95,1305,153],{"class":135},[95,1307,1019],{"class":105},[95,1309,136],{"class":135},[95,1311,144],{"class":135},[95,1313,1314],{"class":135}," false,\n",[95,1316,1317,1319,1322,1324,1326,1328,1330,1332],{"class":97,"line":173},[95,1318,153],{"class":135},[95,1320,1321],{"class":105},"channel_prefix",[95,1323,136],{"class":135},[95,1325,144],{"class":135},[95,1327,163],{"class":135},[95,1329,156],{"class":105},[95,1331,136],{"class":135},[95,1333,170],{"class":135},[95,1335,1336],{"class":97,"line":194},[95,1337,260],{"class":135},[81,1339,1340,1341,1344],{},"When enabled, comment events are broadcast on private channels using the format ",[92,1342,1343],{},"{prefix}.{commentable_type}.{commentable_id}",". Requires Laravel Echo and a broadcasting driver.",[121,1346,1348],{"id":1347},"polling","Polling",[85,1350,1352],{"className":127,"code":1351,"language":102,"meta":90,"style":90},"'polling' => [\n 'interval' => '10s',\n],\n",[92,1353,1354,1366,1386],{"__ignoreMap":90},[95,1355,1356,1358,1360,1362,1364],{"class":97,"line":98},[95,1357,136],{"class":135},[95,1359,1347],{"class":105},[95,1361,136],{"class":135},[95,1363,144],{"class":135},[95,1365,147],{"class":135},[95,1367,1368,1370,1373,1375,1377,1379,1382,1384],{"class":97,"line":150},[95,1369,153],{"class":135},[95,1371,1372],{"class":105},"interval",[95,1374,136],{"class":135},[95,1376,144],{"class":135},[95,1378,163],{"class":135},[95,1380,1381],{"class":105},"10s",[95,1383,136],{"class":135},[95,1385,170],{"class":135},[95,1387,1388],{"class":97,"line":173},[95,1389,260],{"class":135},[81,1391,1392,1393,1396],{},"When broadcasting is disabled, the Livewire component polls for new comments at this interval. Set to ",[92,1394,1395],{},"null"," to disable polling.",[121,1398,1400],{"id":1399},"custom-user-resolution","Custom User Resolution",[81,1402,1403],{},"Override how the authenticated user is resolved:",[85,1405,1407],{"className":127,"code":1406,"language":102,"meta":90,"style":90},"use Relaticle\\Comments\\CommentsConfig;\n\n\u002F\u002F In AppServiceProvider::boot()\nCommentsConfig::resolveAuthenticatedUserUsing(function () {\n return auth()->user();\n});\n",[92,1408,1409,1429,1433,1438,1461,1479],{"__ignoreMap":90},[95,1410,1411,1414,1417,1419,1421,1423,1426],{"class":97,"line":98},[95,1412,1413],{"class":387},"use",[95,1415,1416],{"class":365}," Relaticle",[95,1418,369],{"class":135},[95,1420,372],{"class":365},[95,1422,369],{"class":135},[95,1424,1425],{"class":365},"CommentsConfig",[95,1427,1428],{"class":135},";\n",[95,1430,1431],{"class":97,"line":150},[95,1432,400],{"emptyLinePlaceholder":399},[95,1434,1435],{"class":97,"line":173},[95,1436,1437],{"class":1154},"\u002F\u002F In AppServiceProvider::boot()\n",[95,1439,1440,1442,1444,1448,1451,1455,1458],{"class":97,"line":194},[95,1441,1425],{"class":101},[95,1443,384],{"class":135},[95,1445,1447],{"class":1446},"s2Zo4","resolveAuthenticatedUserUsing",[95,1449,1450],{"class":135},"(",[95,1452,1454],{"class":1453},"spNyl","function",[95,1456,1457],{"class":135}," ()",[95,1459,1460],{"class":135}," {\n",[95,1462,1463,1467,1470,1473,1476],{"class":97,"line":215},[95,1464,1466],{"class":1465},"s7zQu"," return",[95,1468,1469],{"class":1446}," auth",[95,1471,1472],{"class":135},"()->",[95,1474,1475],{"class":1446},"user",[95,1477,1478],{"class":135},"();\n",[95,1480,1481],{"class":97,"line":236},[95,1482,1483],{"class":135},"});\n",[81,1485,1486],{},"This is useful for multi-guard applications or custom authentication flows.",[1488,1489,1490],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}",{"title":90,"searchDepth":150,"depth":150,"links":1492},[1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507],{"id":123,"depth":150,"text":124},{"id":266,"depth":150,"text":267},{"id":330,"depth":150,"text":331},{"id":454,"depth":150,"text":455},{"id":504,"depth":150,"text":505},{"id":556,"depth":150,"text":557},{"id":178,"depth":150,"text":41},{"id":199,"depth":150,"text":36},{"id":849,"depth":150,"text":850},{"id":972,"depth":150,"text":51},{"id":220,"depth":150,"text":1047},{"id":241,"depth":150,"text":46},{"id":1283,"depth":150,"text":1284},{"id":1347,"depth":150,"text":1348},{"id":1399,"depth":150,"text":1400},"Configure threading, reactions, mentions, attachments, notifications, and more.","md",null,{},{"icon":29},{"description":1514,"title":26},"Complete configuration reference for the Comments package.","YWsopc6VLfx9iMf_SsSaKH2khF5148dFFdyJiIINOsU",[1517,1519],{"title":16,"path":17,"stem":18,"description":1518,"icon":19,"children":-1},"Upgrade guide for Comments.",{"title":31,"path":32,"stem":33,"description":1520,"icon":34,"children":-1},"Control who can create, edit, delete, and reply to comments.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":1521},["ShallowReactive",2],{"navigation_docs":3,"-essentials-configuration":75,"-essentials-configuration-surround":1516},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":26,"body":77,"description":1508,"extension":1509,"links":1510,"meta":1511,"navigation":1512,"path":27,"seo":1513,"stem":28,"__hash__":1515},"docs\u002F2.essentials\u002F1.configuration.md",{"type":78,"value":79,"toc":1491},"minimark",[80,84,113,120,125,261,264,268,328,332,449,452,456,495,502,506,543,554,558,595,598,600,765,768,770,841,847,851,967,970,973,1031,1045,1048,1082,1085,1087,1270,1281,1285,1338,1345,1349,1390,1397,1401,1404,1484,1487],[81,82,83],"p",{},"Publish the configuration file:",[85,86,91],"pre",{"className":87,"code":88,"language":89,"meta":90,"style":90},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","php artisan vendor:publish --tag=comments-config\n","bash","",[92,93,94],"code",{"__ignoreMap":90},[95,96,99,103,107,110],"span",{"class":97,"line":98},"line",1,[95,100,102],{"class":101},"sBMFI","php",[95,104,106],{"class":105},"sfazB"," artisan",[95,108,109],{"class":105}," vendor:publish",[95,111,112],{"class":105}," --tag=comments-config\n",[81,114,115,116,119],{},"This creates ",[92,117,118],{},"config\u002Fcomments.php"," with all available options.",[121,122,124],"h2",{"id":123},"table-names","Table Names",[85,126,129],{"className":127,"code":128,"language":102,"meta":90,"style":90},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","'table_names' => [\n 'comments' => 'comments',\n 'reactions' => 'comment_reactions',\n 'mentions' => 'comment_mentions',\n 'subscriptions' => 'comment_subscriptions',\n 'attachments' => 'comment_attachments',\n],\n",[92,130,131,148,171,192,213,234,255],{"__ignoreMap":90},[95,132,133,137,140,142,145],{"class":97,"line":98},[95,134,136],{"class":135},"sMK4o","'",[95,138,139],{"class":105},"table_names",[95,141,136],{"class":135},[95,143,144],{"class":135}," =>",[95,146,147],{"class":135}," [\n",[95,149,151,154,157,159,161,164,166,168],{"class":97,"line":150},2,[95,152,153],{"class":135}," '",[95,155,156],{"class":105},"comments",[95,158,136],{"class":135},[95,160,144],{"class":135},[95,162,163],{"class":135}," '",[95,165,156],{"class":105},[95,167,136],{"class":135},[95,169,170],{"class":135},",\n",[95,172,174,176,179,181,183,185,188,190],{"class":97,"line":173},3,[95,175,153],{"class":135},[95,177,178],{"class":105},"reactions",[95,180,136],{"class":135},[95,182,144],{"class":135},[95,184,163],{"class":135},[95,186,187],{"class":105},"comment_reactions",[95,189,136],{"class":135},[95,191,170],{"class":135},[95,193,195,197,200,202,204,206,209,211],{"class":97,"line":194},4,[95,196,153],{"class":135},[95,198,199],{"class":105},"mentions",[95,201,136],{"class":135},[95,203,144],{"class":135},[95,205,163],{"class":135},[95,207,208],{"class":105},"comment_mentions",[95,210,136],{"class":135},[95,212,170],{"class":135},[95,214,216,218,221,223,225,227,230,232],{"class":97,"line":215},5,[95,217,153],{"class":135},[95,219,220],{"class":105},"subscriptions",[95,222,136],{"class":135},[95,224,144],{"class":135},[95,226,163],{"class":135},[95,228,229],{"class":105},"comment_subscriptions",[95,231,136],{"class":135},[95,233,170],{"class":135},[95,235,237,239,242,244,246,248,251,253],{"class":97,"line":236},6,[95,238,153],{"class":135},[95,240,241],{"class":105},"attachments",[95,243,136],{"class":135},[95,245,144],{"class":135},[95,247,163],{"class":135},[95,249,250],{"class":105},"comment_attachments",[95,252,136],{"class":135},[95,254,170],{"class":135},[95,256,258],{"class":97,"line":257},7,[95,259,260],{"class":135},"],\n",[81,262,263],{},"Change the table names if they conflict with your application.",[121,265,267],{"id":266},"column-names","Column Names",[85,269,271],{"className":127,"code":270,"language":102,"meta":90,"style":90},"'column_names' => [\n 'commenter_id' => 'commenter_id',\n 'commenter_type' => 'commenter_type',\n],\n",[92,272,273,286,305,324],{"__ignoreMap":90},[95,274,275,277,280,282,284],{"class":97,"line":98},[95,276,136],{"class":135},[95,278,279],{"class":105},"column_names",[95,281,136],{"class":135},[95,283,144],{"class":135},[95,285,147],{"class":135},[95,287,288,290,293,295,297,299,301,303],{"class":97,"line":150},[95,289,153],{"class":135},[95,291,292],{"class":105},"commenter_id",[95,294,136],{"class":135},[95,296,144],{"class":135},[95,298,163],{"class":135},[95,300,292],{"class":105},[95,302,136],{"class":135},[95,304,170],{"class":135},[95,306,307,309,312,314,316,318,320,322],{"class":97,"line":173},[95,308,153],{"class":135},[95,310,311],{"class":105},"commenter_type",[95,313,136],{"class":135},[95,315,144],{"class":135},[95,317,163],{"class":135},[95,319,311],{"class":105},[95,321,136],{"class":135},[95,323,170],{"class":135},[95,325,326],{"class":97,"line":194},[95,327,260],{"class":135},[121,329,331],{"id":330},"models","Models",[85,333,335],{"className":127,"code":334,"language":102,"meta":90,"style":90},"'models' => [\n 'comment' => \\Relaticle\\Comments\\Models\\Comment::class,\n],\n\n'commenter' => [\n 'model' => \\App\\Models\\User::class,\n],\n",[92,336,337,349,391,395,401,414,445],{"__ignoreMap":90},[95,338,339,341,343,345,347],{"class":97,"line":98},[95,340,136],{"class":135},[95,342,330],{"class":105},[95,344,136],{"class":135},[95,346,144],{"class":135},[95,348,147],{"class":135},[95,350,351,353,356,358,360,363,367,370,373,375,377,379,382,385,389],{"class":97,"line":150},[95,352,153],{"class":135},[95,354,355],{"class":105},"comment",[95,357,136],{"class":135},[95,359,144],{"class":135},[95,361,362],{"class":135}," \\",[95,364,366],{"class":365},"sTEyZ","Relaticle",[95,368,369],{"class":135},"\\",[95,371,372],{"class":365},"Comments",[95,374,369],{"class":135},[95,376,331],{"class":365},[95,378,369],{"class":135},[95,380,381],{"class":101},"Comment",[95,383,384],{"class":135},"::",[95,386,388],{"class":387},"sbssI","class",[95,390,170],{"class":135},[95,392,393],{"class":97,"line":173},[95,394,260],{"class":135},[95,396,397],{"class":97,"line":194},[95,398,400],{"emptyLinePlaceholder":399},true,"\n",[95,402,403,405,408,410,412],{"class":97,"line":215},[95,404,136],{"class":135},[95,406,407],{"class":105},"commenter",[95,409,136],{"class":135},[95,411,144],{"class":135},[95,413,147],{"class":135},[95,415,416,418,421,423,425,427,430,432,434,436,439,441,443],{"class":97,"line":236},[95,417,153],{"class":135},[95,419,420],{"class":105},"model",[95,422,136],{"class":135},[95,424,144],{"class":135},[95,426,362],{"class":135},[95,428,429],{"class":365},"App",[95,431,369],{"class":135},[95,433,331],{"class":365},[95,435,369],{"class":135},[95,437,438],{"class":101},"User",[95,440,384],{"class":135},[95,442,388],{"class":387},[95,444,170],{"class":135},[95,446,447],{"class":97,"line":257},[95,448,260],{"class":135},[81,450,451],{},"Override the Comment model to add custom behavior. The commenter model defines which class represents the user who comments.",[121,453,455],{"id":454},"policy","Policy",[85,457,459],{"className":127,"code":458,"language":102,"meta":90,"style":90},"'policy' => \\Relaticle\\Comments\\Policies\\CommentPolicy::class,\n",[92,460,461],{"__ignoreMap":90},[95,462,463,465,467,469,471,473,475,477,479,481,484,486,489,491,493],{"class":97,"line":98},[95,464,136],{"class":135},[95,466,454],{"class":105},[95,468,136],{"class":135},[95,470,144],{"class":135},[95,472,362],{"class":135},[95,474,366],{"class":365},[95,476,369],{"class":135},[95,478,372],{"class":365},[95,480,369],{"class":135},[95,482,483],{"class":365},"Policies",[95,485,369],{"class":135},[95,487,488],{"class":101},"CommentPolicy",[95,490,384],{"class":135},[95,492,388],{"class":387},[95,494,170],{"class":135},[81,496,497,498,501],{},"See the ",[499,500,31],"a",{"href":32}," page for customization details.",[121,503,505],{"id":504},"threading","Threading",[85,507,509],{"className":127,"code":508,"language":102,"meta":90,"style":90},"'threading' => [\n 'max_depth' => 2,\n],\n",[92,510,511,523,539],{"__ignoreMap":90},[95,512,513,515,517,519,521],{"class":97,"line":98},[95,514,136],{"class":135},[95,516,504],{"class":105},[95,518,136],{"class":135},[95,520,144],{"class":135},[95,522,147],{"class":135},[95,524,525,527,530,532,534,537],{"class":97,"line":150},[95,526,153],{"class":135},[95,528,529],{"class":105},"max_depth",[95,531,136],{"class":135},[95,533,144],{"class":135},[95,535,536],{"class":387}," 2",[95,538,170],{"class":135},[95,540,541],{"class":97,"line":173},[95,542,260],{"class":135},[81,544,545,546,549,550,553],{},"Controls how many levels of nested replies are allowed. A depth of ",[92,547,548],{},"2"," means top-level comments and one level of replies. Set to ",[92,551,552],{},"1"," to disable replies entirely.",[121,555,557],{"id":556},"pagination","Pagination",[85,559,561],{"className":127,"code":560,"language":102,"meta":90,"style":90},"'pagination' => [\n 'per_page' => 10,\n],\n",[92,562,563,575,591],{"__ignoreMap":90},[95,564,565,567,569,571,573],{"class":97,"line":98},[95,566,136],{"class":135},[95,568,556],{"class":105},[95,570,136],{"class":135},[95,572,144],{"class":135},[95,574,147],{"class":135},[95,576,577,579,582,584,586,589],{"class":97,"line":150},[95,578,153],{"class":135},[95,580,581],{"class":105},"per_page",[95,583,136],{"class":135},[95,585,144],{"class":135},[95,587,588],{"class":387}," 10",[95,590,170],{"class":135},[95,592,593],{"class":97,"line":173},[95,594,260],{"class":135},[81,596,597],{},"Number of comments loaded initially and per \"Load More\" click.",[121,599,41],{"id":178},[85,601,603],{"className":127,"code":602,"language":102,"meta":90,"style":90},"'reactions' => [\n 'emoji_set' => [\n 'thumbs_up' => \"\\u{1F44D}\",\n 'heart' => \"\\u{2764}\\u{FE0F}\",\n 'celebrate' => \"\\u{1F389}\",\n 'laugh' => \"\\u{1F604}\",\n 'thinking' => \"\\u{1F914}\",\n 'sad' => \"\\u{1F622}\",\n ],\n],\n",[92,604,605,617,630,653,673,693,713,733,754,760],{"__ignoreMap":90},[95,606,607,609,611,613,615],{"class":97,"line":98},[95,608,136],{"class":135},[95,610,178],{"class":105},[95,612,136],{"class":135},[95,614,144],{"class":135},[95,616,147],{"class":135},[95,618,619,621,624,626,628],{"class":97,"line":150},[95,620,153],{"class":135},[95,622,623],{"class":105},"emoji_set",[95,625,136],{"class":135},[95,627,144],{"class":135},[95,629,147],{"class":135},[95,631,632,635,638,640,642,645,648,651],{"class":97,"line":173},[95,633,634],{"class":135}," '",[95,636,637],{"class":105},"thumbs_up",[95,639,136],{"class":135},[95,641,144],{"class":135},[95,643,644],{"class":135}," \"",[95,646,647],{"class":365},"\\u{1F44D}",[95,649,650],{"class":135},"\"",[95,652,170],{"class":135},[95,654,655,657,660,662,664,666,669,671],{"class":97,"line":194},[95,656,634],{"class":135},[95,658,659],{"class":105},"heart",[95,661,136],{"class":135},[95,663,144],{"class":135},[95,665,644],{"class":135},[95,667,668],{"class":365},"\\u{2764}\\u{FE0F}",[95,670,650],{"class":135},[95,672,170],{"class":135},[95,674,675,677,680,682,684,686,689,691],{"class":97,"line":215},[95,676,634],{"class":135},[95,678,679],{"class":105},"celebrate",[95,681,136],{"class":135},[95,683,144],{"class":135},[95,685,644],{"class":135},[95,687,688],{"class":365},"\\u{1F389}",[95,690,650],{"class":135},[95,692,170],{"class":135},[95,694,695,697,700,702,704,706,709,711],{"class":97,"line":236},[95,696,634],{"class":135},[95,698,699],{"class":105},"laugh",[95,701,136],{"class":135},[95,703,144],{"class":135},[95,705,644],{"class":135},[95,707,708],{"class":365},"\\u{1F604}",[95,710,650],{"class":135},[95,712,170],{"class":135},[95,714,715,717,720,722,724,726,729,731],{"class":97,"line":257},[95,716,634],{"class":135},[95,718,719],{"class":105},"thinking",[95,721,136],{"class":135},[95,723,144],{"class":135},[95,725,644],{"class":135},[95,727,728],{"class":365},"\\u{1F914}",[95,730,650],{"class":135},[95,732,170],{"class":135},[95,734,736,738,741,743,745,747,750,752],{"class":97,"line":735},8,[95,737,634],{"class":135},[95,739,740],{"class":105},"sad",[95,742,136],{"class":135},[95,744,144],{"class":135},[95,746,644],{"class":135},[95,748,749],{"class":365},"\\u{1F622}",[95,751,650],{"class":135},[95,753,170],{"class":135},[95,755,757],{"class":97,"line":756},9,[95,758,759],{"class":135}," ],\n",[95,761,763],{"class":97,"line":762},10,[95,764,260],{"class":135},[81,766,767],{},"Customize the available emoji reactions. Keys are used as identifiers in the database, values are the displayed emoji characters.",[121,769,36],{"id":199},[85,771,773],{"className":127,"code":772,"language":102,"meta":90,"style":90},"'mentions' => [\n 'resolver' => \\Relaticle\\Comments\\Mentions\\DefaultMentionResolver::class,\n 'max_results' => 5,\n],\n",[92,774,775,787,821,837],{"__ignoreMap":90},[95,776,777,779,781,783,785],{"class":97,"line":98},[95,778,136],{"class":135},[95,780,199],{"class":105},[95,782,136],{"class":135},[95,784,144],{"class":135},[95,786,147],{"class":135},[95,788,789,791,794,796,798,800,802,804,806,808,810,812,815,817,819],{"class":97,"line":150},[95,790,153],{"class":135},[95,792,793],{"class":105},"resolver",[95,795,136],{"class":135},[95,797,144],{"class":135},[95,799,362],{"class":135},[95,801,366],{"class":365},[95,803,369],{"class":135},[95,805,372],{"class":365},[95,807,369],{"class":135},[95,809,36],{"class":365},[95,811,369],{"class":135},[95,813,814],{"class":101},"DefaultMentionResolver",[95,816,384],{"class":135},[95,818,388],{"class":387},[95,820,170],{"class":135},[95,822,823,825,828,830,832,835],{"class":97,"line":173},[95,824,153],{"class":135},[95,826,827],{"class":105},"max_results",[95,829,136],{"class":135},[95,831,144],{"class":135},[95,833,834],{"class":387}," 5",[95,836,170],{"class":135},[95,838,839],{"class":97,"line":194},[95,840,260],{"class":135},[81,842,843,844,846],{},"The resolver handles searching for users during @mention autocomplete. See the ",[499,845,36],{"href":37}," page for creating a custom resolver.",[121,848,850],{"id":849},"editor-toolbar","Editor Toolbar",[85,852,854],{"className":127,"code":853,"language":102,"meta":90,"style":90},"'editor' => [\n 'toolbar' => [\n ['bold', 'italic', 'strike', 'link'],\n ['bulletList', 'orderedList'],\n ['codeBlock'],\n ],\n],\n",[92,855,856,869,882,924,946,959,963],{"__ignoreMap":90},[95,857,858,860,863,865,867],{"class":97,"line":98},[95,859,136],{"class":135},[95,861,862],{"class":105},"editor",[95,864,136],{"class":135},[95,866,144],{"class":135},[95,868,147],{"class":135},[95,870,871,873,876,878,880],{"class":97,"line":150},[95,872,153],{"class":135},[95,874,875],{"class":105},"toolbar",[95,877,136],{"class":135},[95,879,144],{"class":135},[95,881,147],{"class":135},[95,883,884,887,889,892,894,897,899,902,904,906,908,911,913,915,917,920,922],{"class":97,"line":173},[95,885,886],{"class":135}," [",[95,888,136],{"class":135},[95,890,891],{"class":105},"bold",[95,893,136],{"class":135},[95,895,896],{"class":135},",",[95,898,163],{"class":135},[95,900,901],{"class":105},"italic",[95,903,136],{"class":135},[95,905,896],{"class":135},[95,907,163],{"class":135},[95,909,910],{"class":105},"strike",[95,912,136],{"class":135},[95,914,896],{"class":135},[95,916,163],{"class":135},[95,918,919],{"class":105},"link",[95,921,136],{"class":135},[95,923,260],{"class":135},[95,925,926,928,930,933,935,937,939,942,944],{"class":97,"line":194},[95,927,886],{"class":135},[95,929,136],{"class":135},[95,931,932],{"class":105},"bulletList",[95,934,136],{"class":135},[95,936,896],{"class":135},[95,938,163],{"class":135},[95,940,941],{"class":105},"orderedList",[95,943,136],{"class":135},[95,945,260],{"class":135},[95,947,948,950,952,955,957],{"class":97,"line":215},[95,949,886],{"class":135},[95,951,136],{"class":135},[95,953,954],{"class":105},"codeBlock",[95,956,136],{"class":135},[95,958,260],{"class":135},[95,960,961],{"class":97,"line":236},[95,962,759],{"class":135},[95,964,965],{"class":97,"line":257},[95,966,260],{"class":135},[81,968,969],{},"Defines which formatting buttons appear in the comment editor. Groups create visual separators in the toolbar.",[121,971,51],{"id":972},"notifications",[85,974,976],{"className":127,"code":975,"language":102,"meta":90,"style":90},"'notifications' => [\n 'channels' => ['database'],\n 'enabled' => true,\n],\n",[92,977,978,990,1013,1027],{"__ignoreMap":90},[95,979,980,982,984,986,988],{"class":97,"line":98},[95,981,136],{"class":135},[95,983,972],{"class":105},[95,985,136],{"class":135},[95,987,144],{"class":135},[95,989,147],{"class":135},[95,991,992,994,997,999,1001,1004,1006,1009,1011],{"class":97,"line":150},[95,993,153],{"class":135},[95,995,996],{"class":105},"channels",[95,998,136],{"class":135},[95,1000,144],{"class":135},[95,1002,1003],{"class":135}," [",[95,1005,136],{"class":135},[95,1007,1008],{"class":105},"database",[95,1010,136],{"class":135},[95,1012,260],{"class":135},[95,1014,1015,1017,1020,1022,1024],{"class":97,"line":173},[95,1016,153],{"class":135},[95,1018,1019],{"class":105},"enabled",[95,1021,136],{"class":135},[95,1023,144],{"class":135},[95,1025,1026],{"class":135}," true,\n",[95,1028,1029],{"class":97,"line":194},[95,1030,260],{"class":135},[81,1032,1033,1034,1037,1038,1040,1041,1044],{},"Add ",[92,1035,1036],{},"'mail'"," to the channels array to send email notifications. Set ",[92,1039,1019],{}," to ",[92,1042,1043],{},"false"," to disable all notifications.",[121,1046,1047],{"id":220},"Subscriptions",[85,1049,1051],{"className":127,"code":1050,"language":102,"meta":90,"style":90},"'subscriptions' => [\n 'auto_subscribe' => true,\n],\n",[92,1052,1053,1065,1078],{"__ignoreMap":90},[95,1054,1055,1057,1059,1061,1063],{"class":97,"line":98},[95,1056,136],{"class":135},[95,1058,220],{"class":105},[95,1060,136],{"class":135},[95,1062,144],{"class":135},[95,1064,147],{"class":135},[95,1066,1067,1069,1072,1074,1076],{"class":97,"line":150},[95,1068,153],{"class":135},[95,1070,1071],{"class":105},"auto_subscribe",[95,1073,136],{"class":135},[95,1075,144],{"class":135},[95,1077,1026],{"class":135},[95,1079,1080],{"class":97,"line":173},[95,1081,260],{"class":135},[81,1083,1084],{},"When enabled, users are automatically subscribed to a thread when they create a comment or are mentioned. They receive notifications for subsequent replies.",[121,1086,46],{"id":241},[85,1088,1090],{"className":127,"code":1089,"language":102,"meta":90,"style":90},"'attachments' => [\n 'enabled' => true,\n 'disk' => 'public',\n 'max_size' => 10240, \u002F\u002F KB\n 'allowed_types' => [\n 'image\u002Fjpeg',\n 'image\u002Fpng',\n 'image\u002Fgif',\n 'image\u002Fwebp',\n 'application\u002Fpdf',\n 'text\u002Fplain',\n 'application\u002Fmsword',\n 'application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document',\n ],\n],\n",[92,1091,1092,1104,1116,1136,1156,1169,1180,1191,1202,1213,1224,1236,1248,1260,1265],{"__ignoreMap":90},[95,1093,1094,1096,1098,1100,1102],{"class":97,"line":98},[95,1095,136],{"class":135},[95,1097,241],{"class":105},[95,1099,136],{"class":135},[95,1101,144],{"class":135},[95,1103,147],{"class":135},[95,1105,1106,1108,1110,1112,1114],{"class":97,"line":150},[95,1107,153],{"class":135},[95,1109,1019],{"class":105},[95,1111,136],{"class":135},[95,1113,144],{"class":135},[95,1115,1026],{"class":135},[95,1117,1118,1120,1123,1125,1127,1129,1132,1134],{"class":97,"line":173},[95,1119,153],{"class":135},[95,1121,1122],{"class":105},"disk",[95,1124,136],{"class":135},[95,1126,144],{"class":135},[95,1128,163],{"class":135},[95,1130,1131],{"class":105},"public",[95,1133,136],{"class":135},[95,1135,170],{"class":135},[95,1137,1138,1140,1143,1145,1147,1150,1152],{"class":97,"line":194},[95,1139,153],{"class":135},[95,1141,1142],{"class":105},"max_size",[95,1144,136],{"class":135},[95,1146,144],{"class":135},[95,1148,1149],{"class":387}," 10240",[95,1151,896],{"class":135},[95,1153,1155],{"class":1154},"sHwdD"," \u002F\u002F KB\n",[95,1157,1158,1160,1163,1165,1167],{"class":97,"line":215},[95,1159,153],{"class":135},[95,1161,1162],{"class":105},"allowed_types",[95,1164,136],{"class":135},[95,1166,144],{"class":135},[95,1168,147],{"class":135},[95,1170,1171,1173,1176,1178],{"class":97,"line":236},[95,1172,634],{"class":135},[95,1174,1175],{"class":105},"image\u002Fjpeg",[95,1177,136],{"class":135},[95,1179,170],{"class":135},[95,1181,1182,1184,1187,1189],{"class":97,"line":257},[95,1183,634],{"class":135},[95,1185,1186],{"class":105},"image\u002Fpng",[95,1188,136],{"class":135},[95,1190,170],{"class":135},[95,1192,1193,1195,1198,1200],{"class":97,"line":735},[95,1194,634],{"class":135},[95,1196,1197],{"class":105},"image\u002Fgif",[95,1199,136],{"class":135},[95,1201,170],{"class":135},[95,1203,1204,1206,1209,1211],{"class":97,"line":756},[95,1205,634],{"class":135},[95,1207,1208],{"class":105},"image\u002Fwebp",[95,1210,136],{"class":135},[95,1212,170],{"class":135},[95,1214,1215,1217,1220,1222],{"class":97,"line":762},[95,1216,634],{"class":135},[95,1218,1219],{"class":105},"application\u002Fpdf",[95,1221,136],{"class":135},[95,1223,170],{"class":135},[95,1225,1227,1229,1232,1234],{"class":97,"line":1226},11,[95,1228,634],{"class":135},[95,1230,1231],{"class":105},"text\u002Fplain",[95,1233,136],{"class":135},[95,1235,170],{"class":135},[95,1237,1239,1241,1244,1246],{"class":97,"line":1238},12,[95,1240,634],{"class":135},[95,1242,1243],{"class":105},"application\u002Fmsword",[95,1245,136],{"class":135},[95,1247,170],{"class":135},[95,1249,1251,1253,1256,1258],{"class":97,"line":1250},13,[95,1252,634],{"class":135},[95,1254,1255],{"class":105},"application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document",[95,1257,136],{"class":135},[95,1259,170],{"class":135},[95,1261,1263],{"class":97,"line":1262},14,[95,1264,759],{"class":135},[95,1266,1268],{"class":97,"line":1267},15,[95,1269,260],{"class":135},[81,1271,1272,1273,1040,1275,1277,1278,1280],{},"Controls file upload behavior. Set ",[92,1274,1019],{},[92,1276,1043],{}," to remove the attachment UI entirely. The ",[92,1279,1142],{}," is in kilobytes (default 10 MB).",[121,1282,1284],{"id":1283},"broadcasting","Broadcasting",[85,1286,1288],{"className":127,"code":1287,"language":102,"meta":90,"style":90},"'broadcasting' => [\n 'enabled' => false,\n 'channel_prefix' => 'comments',\n],\n",[92,1289,1290,1302,1315,1334],{"__ignoreMap":90},[95,1291,1292,1294,1296,1298,1300],{"class":97,"line":98},[95,1293,136],{"class":135},[95,1295,1283],{"class":105},[95,1297,136],{"class":135},[95,1299,144],{"class":135},[95,1301,147],{"class":135},[95,1303,1304,1306,1308,1310,1312],{"class":97,"line":150},[95,1305,153],{"class":135},[95,1307,1019],{"class":105},[95,1309,136],{"class":135},[95,1311,144],{"class":135},[95,1313,1314],{"class":135}," false,\n",[95,1316,1317,1319,1322,1324,1326,1328,1330,1332],{"class":97,"line":173},[95,1318,153],{"class":135},[95,1320,1321],{"class":105},"channel_prefix",[95,1323,136],{"class":135},[95,1325,144],{"class":135},[95,1327,163],{"class":135},[95,1329,156],{"class":105},[95,1331,136],{"class":135},[95,1333,170],{"class":135},[95,1335,1336],{"class":97,"line":194},[95,1337,260],{"class":135},[81,1339,1340,1341,1344],{},"When enabled, comment events are broadcast on private channels using the format ",[92,1342,1343],{},"{prefix}.{commentable_type}.{commentable_id}",". Requires Laravel Echo and a broadcasting driver.",[121,1346,1348],{"id":1347},"polling","Polling",[85,1350,1352],{"className":127,"code":1351,"language":102,"meta":90,"style":90},"'polling' => [\n 'interval' => '10s',\n],\n",[92,1353,1354,1366,1386],{"__ignoreMap":90},[95,1355,1356,1358,1360,1362,1364],{"class":97,"line":98},[95,1357,136],{"class":135},[95,1359,1347],{"class":105},[95,1361,136],{"class":135},[95,1363,144],{"class":135},[95,1365,147],{"class":135},[95,1367,1368,1370,1373,1375,1377,1379,1382,1384],{"class":97,"line":150},[95,1369,153],{"class":135},[95,1371,1372],{"class":105},"interval",[95,1374,136],{"class":135},[95,1376,144],{"class":135},[95,1378,163],{"class":135},[95,1380,1381],{"class":105},"10s",[95,1383,136],{"class":135},[95,1385,170],{"class":135},[95,1387,1388],{"class":97,"line":173},[95,1389,260],{"class":135},[81,1391,1392,1393,1396],{},"When broadcasting is disabled, the Livewire component polls for new comments at this interval. Set to ",[92,1394,1395],{},"null"," to disable polling.",[121,1398,1400],{"id":1399},"custom-user-resolution","Custom User Resolution",[81,1402,1403],{},"Override how the authenticated user is resolved:",[85,1405,1407],{"className":127,"code":1406,"language":102,"meta":90,"style":90},"use Relaticle\\Comments\\CommentsConfig;\n\n\u002F\u002F In AppServiceProvider::boot()\nCommentsConfig::resolveAuthenticatedUserUsing(function () {\n return auth()->user();\n});\n",[92,1408,1409,1429,1433,1438,1461,1479],{"__ignoreMap":90},[95,1410,1411,1414,1417,1419,1421,1423,1426],{"class":97,"line":98},[95,1412,1413],{"class":387},"use",[95,1415,1416],{"class":365}," Relaticle",[95,1418,369],{"class":135},[95,1420,372],{"class":365},[95,1422,369],{"class":135},[95,1424,1425],{"class":365},"CommentsConfig",[95,1427,1428],{"class":135},";\n",[95,1430,1431],{"class":97,"line":150},[95,1432,400],{"emptyLinePlaceholder":399},[95,1434,1435],{"class":97,"line":173},[95,1436,1437],{"class":1154},"\u002F\u002F In AppServiceProvider::boot()\n",[95,1439,1440,1442,1444,1448,1451,1455,1458],{"class":97,"line":194},[95,1441,1425],{"class":101},[95,1443,384],{"class":135},[95,1445,1447],{"class":1446},"s2Zo4","resolveAuthenticatedUserUsing",[95,1449,1450],{"class":135},"(",[95,1452,1454],{"class":1453},"spNyl","function",[95,1456,1457],{"class":135}," ()",[95,1459,1460],{"class":135}," {\n",[95,1462,1463,1467,1470,1473,1476],{"class":97,"line":215},[95,1464,1466],{"class":1465},"s7zQu"," return",[95,1468,1469],{"class":1446}," auth",[95,1471,1472],{"class":135},"()->",[95,1474,1475],{"class":1446},"user",[95,1477,1478],{"class":135},"();\n",[95,1480,1481],{"class":97,"line":236},[95,1482,1483],{"class":135},"});\n",[81,1485,1486],{},"This is useful for multi-guard applications or custom authentication flows.",[1488,1489,1490],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}",{"title":90,"searchDepth":150,"depth":150,"links":1492},[1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507],{"id":123,"depth":150,"text":124},{"id":266,"depth":150,"text":267},{"id":330,"depth":150,"text":331},{"id":454,"depth":150,"text":455},{"id":504,"depth":150,"text":505},{"id":556,"depth":150,"text":557},{"id":178,"depth":150,"text":41},{"id":199,"depth":150,"text":36},{"id":849,"depth":150,"text":850},{"id":972,"depth":150,"text":51},{"id":220,"depth":150,"text":1047},{"id":241,"depth":150,"text":46},{"id":1283,"depth":150,"text":1284},{"id":1347,"depth":150,"text":1348},{"id":1399,"depth":150,"text":1400},"Configure threading, reactions, mentions, attachments, notifications, and more.","md",null,{},{"icon":29},{"description":1514,"title":26},"Complete configuration reference for the Comments package.","YWsopc6VLfx9iMf_SsSaKH2khF5148dFFdyJiIINOsU",[1517,1519],{"title":16,"path":17,"stem":18,"description":1518,"icon":19,"children":-1},"Upgrade guide for Comments.",{"title":31,"path":32,"stem":33,"description":1520,"icon":34,"children":-1},"Control who can create, edit, delete, and reply to comments.",1774619385138] \ No newline at end of file diff --git a/essentials/database-schema.html b/essentials/database-schema.html index e138ace..8fc5aab 100644 --- a/essentials/database-schema.html +++ b/essentials/database-schema.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Database Schema - Comments
Comments Logo
1.x
Essentials

Database Schema

Tables, relationships, and indexes used by the Comments package.

Tables

Five tables are created by the package migrations.

comments

The main comments table with polymorphic relationships and threading support.

ColumnTypeDescription
idbigintPrimary key
commentable_typestringPolymorphic model type
commentable_idbigintPolymorphic model ID
commenter_typestringCommenter model type
commenter_idbigintCommenter model ID
parent_idbigint (nullable)Parent comment for replies
bodytextHTML comment content
edited_attimestamp (nullable)When the comment was last edited
deleted_attimestamp (nullable)Soft delete timestamp
created_attimestamp
updated_attimestamp

Indexes: (commentable_type, commentable_id, parent_id)

comment_reactions

Tracks emoji reactions per user per comment.

ColumnTypeDescription
idbigintPrimary key
comment_idbigintForeign key to comments
commenter_typestringReactor model type
commenter_idbigintReactor model ID
reactionstringReaction key (e.g., thumbs_up)
created_attimestamp

Unique constraint: (comment_id, commenter_id, commenter_type, reaction)

comment_mentions

Tracks @mentioned users per comment.

ColumnTypeDescription
idbigintPrimary key
comment_idbigintForeign key to comments
commenter_typestringMentioned user model type
commenter_idbigintMentioned user model ID
created_attimestamp

Unique constraint: (comment_id, commenter_id, commenter_type)

comment_subscriptions

Tracks which users are subscribed to comment threads on specific models.

ColumnTypeDescription
idbigintPrimary key
commentable_typestringSubscribed model type
commentable_idbigintSubscribed model ID
commenter_typestringSubscriber model type
commenter_idbigintSubscriber model ID
created_attimestamp

Unique constraint: (commentable_type, commentable_id, commenter_type, commenter_id)

comment_attachments

Stores file attachment metadata for comments.

ColumnTypeDescription
idbigintPrimary key
comment_idbigintForeign key to comments
file_pathstringPath on the storage disk
original_namestringOriginal uploaded filename
mime_typestringFile MIME type
sizebigintFile size in bytes
diskstringLaravel filesystem disk
created_attimestamp
updated_attimestamp

Relationships

Commentable Model (e.g., Project)
+}Database Schema - Comments
Comments Logo
1.x
Essentials

Database Schema

Tables, relationships, and indexes used by the Comments package.

Tables

Five tables are created by the package migrations.

comments

The main comments table with polymorphic relationships and threading support.

ColumnTypeDescription
idbigintPrimary key
commentable_typestringPolymorphic model type
commentable_idbigintPolymorphic model ID
commenter_typestringCommenter model type
commenter_idbigintCommenter model ID
parent_idbigint (nullable)Parent comment for replies
bodytextHTML comment content
edited_attimestamp (nullable)When the comment was last edited
deleted_attimestamp (nullable)Soft delete timestamp
created_attimestamp
updated_attimestamp

Indexes: (commentable_type, commentable_id, parent_id)

comment_reactions

Tracks emoji reactions per user per comment.

ColumnTypeDescription
idbigintPrimary key
comment_idbigintForeign key to comments
commenter_typestringReactor model type
commenter_idbigintReactor model ID
reactionstringReaction key (e.g., thumbs_up)
created_attimestamp

Unique constraint: (comment_id, commenter_id, commenter_type, reaction)

comment_mentions

Tracks @mentioned users per comment.

ColumnTypeDescription
idbigintPrimary key
comment_idbigintForeign key to comments
commenter_typestringMentioned user model type
commenter_idbigintMentioned user model ID
created_attimestamp

Unique constraint: (comment_id, commenter_id, commenter_type)

comment_subscriptions

Tracks which users are subscribed to comment threads on specific models.

ColumnTypeDescription
idbigintPrimary key
commentable_typestringSubscribed model type
commentable_idbigintSubscribed model ID
commenter_typestringSubscriber model type
commenter_idbigintSubscriber model ID
created_attimestamp

Unique constraint: (commentable_type, commentable_id, commenter_type, commenter_id)

comment_attachments

Stores file attachment metadata for comments.

ColumnTypeDescription
idbigintPrimary key
comment_idbigintForeign key to comments
file_pathstringPath on the storage disk
original_namestringOriginal uploaded filename
mime_typestringFile MIME type
sizebigintFile size in bytes
diskstringLaravel filesystem disk
created_attimestamp
updated_attimestamp

Relationships

Commentable Model (e.g., Project)
   └── comments (morphMany)
         ├── commenter (morphTo → User)
         ├── parent (belongsTo → Comment)
@@ -102,4 +102,4 @@
         ├── reactions (hasMany → Reaction)
         ├── attachments (hasMany → Attachment)
         └── mentions (morphToMany → User)
-

All relationships are polymorphic, allowing the same comment system to work across any number of models in your application.

Copyright © 2026
\ No newline at end of file +

All relationships are polymorphic, allowing the same comment system to work across any number of models in your application.

Copyright © 2026
\ No newline at end of file diff --git a/essentials/database-schema/_payload.json b/essentials/database-schema/_payload.json index 6077179..2a1137f 100644 --- a/essentials/database-schema/_payload.json +++ b/essentials/database-schema/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":695},["ShallowReactive",2],{"navigation_docs":3,"-essentials-database-schema":75,"-essentials-database-schema-surround":690},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":56,"body":77,"description":682,"extension":683,"links":684,"meta":685,"navigation":686,"path":57,"seo":687,"stem":58,"__hash__":689},"docs\u002F2.essentials\u002F7.database-schema.md",{"type":78,"value":79,"toc":670},"minimark",[80,85,89,93,96,256,266,269,272,356,364,367,370,436,443,446,449,527,534,537,540,654,658,667],[81,82,84],"h2",{"id":83},"tables","Tables",[86,87,88],"p",{},"Five tables are created by the package migrations.",[90,91,92],"h3",{"id":92},"comments",[86,94,95],{},"The main comments table with polymorphic relationships and threading support.",[97,98,99,115],"table",{},[100,101,102],"thead",{},[103,104,105,109,112],"tr",{},[106,107,108],"th",{},"Column",[106,110,111],{},"Type",[106,113,114],{},"Description",[116,117,118,133,146,158,170,182,195,208,221,233,245],"tbody",{},[103,119,120,127,130],{},[121,122,123],"td",{},[124,125,126],"code",{},"id",[121,128,129],{},"bigint",[121,131,132],{},"Primary key",[103,134,135,140,143],{},[121,136,137],{},[124,138,139],{},"commentable_type",[121,141,142],{},"string",[121,144,145],{},"Polymorphic model type",[103,147,148,153,155],{},[121,149,150],{},[124,151,152],{},"commentable_id",[121,154,129],{},[121,156,157],{},"Polymorphic model ID",[103,159,160,165,167],{},[121,161,162],{},[124,163,164],{},"commenter_type",[121,166,142],{},[121,168,169],{},"Commenter model type",[103,171,172,177,179],{},[121,173,174],{},[124,175,176],{},"commenter_id",[121,178,129],{},[121,180,181],{},"Commenter model ID",[103,183,184,189,192],{},[121,185,186],{},[124,187,188],{},"parent_id",[121,190,191],{},"bigint (nullable)",[121,193,194],{},"Parent comment for replies",[103,196,197,202,205],{},[121,198,199],{},[124,200,201],{},"body",[121,203,204],{},"text",[121,206,207],{},"HTML comment content",[103,209,210,215,218],{},[121,211,212],{},[124,213,214],{},"edited_at",[121,216,217],{},"timestamp (nullable)",[121,219,220],{},"When the comment was last edited",[103,222,223,228,230],{},[121,224,225],{},[124,226,227],{},"deleted_at",[121,229,217],{},[121,231,232],{},"Soft delete timestamp",[103,234,235,240,243],{},[121,236,237],{},[124,238,239],{},"created_at",[121,241,242],{},"timestamp",[121,244],{},[103,246,247,252,254],{},[121,248,249],{},[124,250,251],{},"updated_at",[121,253,242],{},[121,255],{},[86,257,258,262,263],{},[259,260,261],"strong",{},"Indexes:"," ",[124,264,265],{},"(commentable_type, commentable_id, parent_id)",[90,267,268],{"id":268},"comment_reactions",[86,270,271],{},"Tracks emoji reactions per user per comment.",[97,273,274,284],{},[100,275,276],{},[103,277,278,280,282],{},[106,279,108],{},[106,281,111],{},[106,283,114],{},[116,285,286,296,308,319,330,346],{},[103,287,288,292,294],{},[121,289,290],{},[124,291,126],{},[121,293,129],{},[121,295,132],{},[103,297,298,303,305],{},[121,299,300],{},[124,301,302],{},"comment_id",[121,304,129],{},[121,306,307],{},"Foreign key to comments",[103,309,310,314,316],{},[121,311,312],{},[124,313,164],{},[121,315,142],{},[121,317,318],{},"Reactor model type",[103,320,321,325,327],{},[121,322,323],{},[124,324,176],{},[121,326,129],{},[121,328,329],{},"Reactor model ID",[103,331,332,337,339],{},[121,333,334],{},[124,335,336],{},"reaction",[121,338,142],{},[121,340,341,342,345],{},"Reaction key (e.g., ",[124,343,344],{},"thumbs_up",")",[103,347,348,352,354],{},[121,349,350],{},[124,351,239],{},[121,353,242],{},[121,355],{},[86,357,358,262,361],{},[259,359,360],{},"Unique constraint:",[124,362,363],{},"(comment_id, commenter_id, commenter_type, reaction)",[90,365,366],{"id":366},"comment_mentions",[86,368,369],{},"Tracks @mentioned users per comment.",[97,371,372,382],{},[100,373,374],{},[103,375,376,378,380],{},[106,377,108],{},[106,379,111],{},[106,381,114],{},[116,383,384,394,404,415,426],{},[103,385,386,390,392],{},[121,387,388],{},[124,389,126],{},[121,391,129],{},[121,393,132],{},[103,395,396,400,402],{},[121,397,398],{},[124,399,302],{},[121,401,129],{},[121,403,307],{},[103,405,406,410,412],{},[121,407,408],{},[124,409,164],{},[121,411,142],{},[121,413,414],{},"Mentioned user model type",[103,416,417,421,423],{},[121,418,419],{},[124,420,176],{},[121,422,129],{},[121,424,425],{},"Mentioned user model ID",[103,427,428,432,434],{},[121,429,430],{},[124,431,239],{},[121,433,242],{},[121,435],{},[86,437,438,262,440],{},[259,439,360],{},[124,441,442],{},"(comment_id, commenter_id, commenter_type)",[90,444,445],{"id":445},"comment_subscriptions",[86,447,448],{},"Tracks which users are subscribed to comment threads on specific models.",[97,450,451,461],{},[100,452,453],{},[103,454,455,457,459],{},[106,456,108],{},[106,458,111],{},[106,460,114],{},[116,462,463,473,484,495,506,517],{},[103,464,465,469,471],{},[121,466,467],{},[124,468,126],{},[121,470,129],{},[121,472,132],{},[103,474,475,479,481],{},[121,476,477],{},[124,478,139],{},[121,480,142],{},[121,482,483],{},"Subscribed model type",[103,485,486,490,492],{},[121,487,488],{},[124,489,152],{},[121,491,129],{},[121,493,494],{},"Subscribed model ID",[103,496,497,501,503],{},[121,498,499],{},[124,500,164],{},[121,502,142],{},[121,504,505],{},"Subscriber model type",[103,507,508,512,514],{},[121,509,510],{},[124,511,176],{},[121,513,129],{},[121,515,516],{},"Subscriber model ID",[103,518,519,523,525],{},[121,520,521],{},[124,522,239],{},[121,524,242],{},[121,526],{},[86,528,529,262,531],{},[259,530,360],{},[124,532,533],{},"(commentable_type, commentable_id, commenter_type, commenter_id)",[90,535,536],{"id":536},"comment_attachments",[86,538,539],{},"Stores file attachment metadata for comments.",[97,541,542,552],{},[100,543,544],{},[103,545,546,548,550],{},[106,547,108],{},[106,549,111],{},[106,551,114],{},[116,553,554,564,574,586,598,610,622,634,644],{},[103,555,556,560,562],{},[121,557,558],{},[124,559,126],{},[121,561,129],{},[121,563,132],{},[103,565,566,570,572],{},[121,567,568],{},[124,569,302],{},[121,571,129],{},[121,573,307],{},[103,575,576,581,583],{},[121,577,578],{},[124,579,580],{},"file_path",[121,582,142],{},[121,584,585],{},"Path on the storage disk",[103,587,588,593,595],{},[121,589,590],{},[124,591,592],{},"original_name",[121,594,142],{},[121,596,597],{},"Original uploaded filename",[103,599,600,605,607],{},[121,601,602],{},[124,603,604],{},"mime_type",[121,606,142],{},[121,608,609],{},"File MIME type",[103,611,612,617,619],{},[121,613,614],{},[124,615,616],{},"size",[121,618,129],{},[121,620,621],{},"File size in bytes",[103,623,624,629,631],{},[121,625,626],{},[124,627,628],{},"disk",[121,630,142],{},[121,632,633],{},"Laravel filesystem disk",[103,635,636,640,642],{},[121,637,638],{},[124,639,239],{},[121,641,242],{},[121,643],{},[103,645,646,650,652],{},[121,647,648],{},[124,649,251],{},[121,651,242],{},[121,653],{},[81,655,657],{"id":656},"relationships","Relationships",[659,660,664],"pre",{"className":661,"code":663,"language":204},[662],"language-text","Commentable Model (e.g., Project)\n └── comments (morphMany)\n ├── commenter (morphTo → User)\n ├── parent (belongsTo → Comment)\n ├── replies (hasMany → Comment)\n ├── reactions (hasMany → Reaction)\n ├── attachments (hasMany → Attachment)\n └── mentions (morphToMany → User)\n",[124,665,663],{"__ignoreMap":666},"",[86,668,669],{},"All relationships are polymorphic, allowing the same comment system to work across any number of models in your application.",{"title":666,"searchDepth":671,"depth":671,"links":672},2,[673,681],{"id":83,"depth":671,"text":84,"children":674},[675,677,678,679,680],{"id":92,"depth":676,"text":92},3,{"id":268,"depth":676,"text":268},{"id":366,"depth":676,"text":366},{"id":445,"depth":676,"text":445},{"id":536,"depth":676,"text":536},{"id":656,"depth":671,"text":657},"Tables, relationships, and indexes used by the Comments package.","md",null,{},{"icon":59},{"description":688,"title":56},"Database schema reference for the Comments package.","5_kn3a7TCJOh1wLcKzZt0UvBJvm6q5qnwOrAjg4Pydw",[691,693],{"title":51,"path":52,"stem":53,"description":692,"icon":54,"children":-1},"Comment notifications, subscriptions, and real-time updates.",{"title":66,"path":67,"stem":68,"description":694,"icon":69,"children":-1},"How to contribute to Comments",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":695},["ShallowReactive",2],{"navigation_docs":3,"-essentials-database-schema":75,"-essentials-database-schema-surround":690},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":56,"body":77,"description":682,"extension":683,"links":684,"meta":685,"navigation":686,"path":57,"seo":687,"stem":58,"__hash__":689},"docs\u002F2.essentials\u002F7.database-schema.md",{"type":78,"value":79,"toc":670},"minimark",[80,85,89,93,96,256,266,269,272,356,364,367,370,436,443,446,449,527,534,537,540,654,658,667],[81,82,84],"h2",{"id":83},"tables","Tables",[86,87,88],"p",{},"Five tables are created by the package migrations.",[90,91,92],"h3",{"id":92},"comments",[86,94,95],{},"The main comments table with polymorphic relationships and threading support.",[97,98,99,115],"table",{},[100,101,102],"thead",{},[103,104,105,109,112],"tr",{},[106,107,108],"th",{},"Column",[106,110,111],{},"Type",[106,113,114],{},"Description",[116,117,118,133,146,158,170,182,195,208,221,233,245],"tbody",{},[103,119,120,127,130],{},[121,122,123],"td",{},[124,125,126],"code",{},"id",[121,128,129],{},"bigint",[121,131,132],{},"Primary key",[103,134,135,140,143],{},[121,136,137],{},[124,138,139],{},"commentable_type",[121,141,142],{},"string",[121,144,145],{},"Polymorphic model type",[103,147,148,153,155],{},[121,149,150],{},[124,151,152],{},"commentable_id",[121,154,129],{},[121,156,157],{},"Polymorphic model ID",[103,159,160,165,167],{},[121,161,162],{},[124,163,164],{},"commenter_type",[121,166,142],{},[121,168,169],{},"Commenter model type",[103,171,172,177,179],{},[121,173,174],{},[124,175,176],{},"commenter_id",[121,178,129],{},[121,180,181],{},"Commenter model ID",[103,183,184,189,192],{},[121,185,186],{},[124,187,188],{},"parent_id",[121,190,191],{},"bigint (nullable)",[121,193,194],{},"Parent comment for replies",[103,196,197,202,205],{},[121,198,199],{},[124,200,201],{},"body",[121,203,204],{},"text",[121,206,207],{},"HTML comment content",[103,209,210,215,218],{},[121,211,212],{},[124,213,214],{},"edited_at",[121,216,217],{},"timestamp (nullable)",[121,219,220],{},"When the comment was last edited",[103,222,223,228,230],{},[121,224,225],{},[124,226,227],{},"deleted_at",[121,229,217],{},[121,231,232],{},"Soft delete timestamp",[103,234,235,240,243],{},[121,236,237],{},[124,238,239],{},"created_at",[121,241,242],{},"timestamp",[121,244],{},[103,246,247,252,254],{},[121,248,249],{},[124,250,251],{},"updated_at",[121,253,242],{},[121,255],{},[86,257,258,262,263],{},[259,260,261],"strong",{},"Indexes:"," ",[124,264,265],{},"(commentable_type, commentable_id, parent_id)",[90,267,268],{"id":268},"comment_reactions",[86,270,271],{},"Tracks emoji reactions per user per comment.",[97,273,274,284],{},[100,275,276],{},[103,277,278,280,282],{},[106,279,108],{},[106,281,111],{},[106,283,114],{},[116,285,286,296,308,319,330,346],{},[103,287,288,292,294],{},[121,289,290],{},[124,291,126],{},[121,293,129],{},[121,295,132],{},[103,297,298,303,305],{},[121,299,300],{},[124,301,302],{},"comment_id",[121,304,129],{},[121,306,307],{},"Foreign key to comments",[103,309,310,314,316],{},[121,311,312],{},[124,313,164],{},[121,315,142],{},[121,317,318],{},"Reactor model type",[103,320,321,325,327],{},[121,322,323],{},[124,324,176],{},[121,326,129],{},[121,328,329],{},"Reactor model ID",[103,331,332,337,339],{},[121,333,334],{},[124,335,336],{},"reaction",[121,338,142],{},[121,340,341,342,345],{},"Reaction key (e.g., ",[124,343,344],{},"thumbs_up",")",[103,347,348,352,354],{},[121,349,350],{},[124,351,239],{},[121,353,242],{},[121,355],{},[86,357,358,262,361],{},[259,359,360],{},"Unique constraint:",[124,362,363],{},"(comment_id, commenter_id, commenter_type, reaction)",[90,365,366],{"id":366},"comment_mentions",[86,368,369],{},"Tracks @mentioned users per comment.",[97,371,372,382],{},[100,373,374],{},[103,375,376,378,380],{},[106,377,108],{},[106,379,111],{},[106,381,114],{},[116,383,384,394,404,415,426],{},[103,385,386,390,392],{},[121,387,388],{},[124,389,126],{},[121,391,129],{},[121,393,132],{},[103,395,396,400,402],{},[121,397,398],{},[124,399,302],{},[121,401,129],{},[121,403,307],{},[103,405,406,410,412],{},[121,407,408],{},[124,409,164],{},[121,411,142],{},[121,413,414],{},"Mentioned user model type",[103,416,417,421,423],{},[121,418,419],{},[124,420,176],{},[121,422,129],{},[121,424,425],{},"Mentioned user model ID",[103,427,428,432,434],{},[121,429,430],{},[124,431,239],{},[121,433,242],{},[121,435],{},[86,437,438,262,440],{},[259,439,360],{},[124,441,442],{},"(comment_id, commenter_id, commenter_type)",[90,444,445],{"id":445},"comment_subscriptions",[86,447,448],{},"Tracks which users are subscribed to comment threads on specific models.",[97,450,451,461],{},[100,452,453],{},[103,454,455,457,459],{},[106,456,108],{},[106,458,111],{},[106,460,114],{},[116,462,463,473,484,495,506,517],{},[103,464,465,469,471],{},[121,466,467],{},[124,468,126],{},[121,470,129],{},[121,472,132],{},[103,474,475,479,481],{},[121,476,477],{},[124,478,139],{},[121,480,142],{},[121,482,483],{},"Subscribed model type",[103,485,486,490,492],{},[121,487,488],{},[124,489,152],{},[121,491,129],{},[121,493,494],{},"Subscribed model ID",[103,496,497,501,503],{},[121,498,499],{},[124,500,164],{},[121,502,142],{},[121,504,505],{},"Subscriber model type",[103,507,508,512,514],{},[121,509,510],{},[124,511,176],{},[121,513,129],{},[121,515,516],{},"Subscriber model ID",[103,518,519,523,525],{},[121,520,521],{},[124,522,239],{},[121,524,242],{},[121,526],{},[86,528,529,262,531],{},[259,530,360],{},[124,532,533],{},"(commentable_type, commentable_id, commenter_type, commenter_id)",[90,535,536],{"id":536},"comment_attachments",[86,538,539],{},"Stores file attachment metadata for comments.",[97,541,542,552],{},[100,543,544],{},[103,545,546,548,550],{},[106,547,108],{},[106,549,111],{},[106,551,114],{},[116,553,554,564,574,586,598,610,622,634,644],{},[103,555,556,560,562],{},[121,557,558],{},[124,559,126],{},[121,561,129],{},[121,563,132],{},[103,565,566,570,572],{},[121,567,568],{},[124,569,302],{},[121,571,129],{},[121,573,307],{},[103,575,576,581,583],{},[121,577,578],{},[124,579,580],{},"file_path",[121,582,142],{},[121,584,585],{},"Path on the storage disk",[103,587,588,593,595],{},[121,589,590],{},[124,591,592],{},"original_name",[121,594,142],{},[121,596,597],{},"Original uploaded filename",[103,599,600,605,607],{},[121,601,602],{},[124,603,604],{},"mime_type",[121,606,142],{},[121,608,609],{},"File MIME type",[103,611,612,617,619],{},[121,613,614],{},[124,615,616],{},"size",[121,618,129],{},[121,620,621],{},"File size in bytes",[103,623,624,629,631],{},[121,625,626],{},[124,627,628],{},"disk",[121,630,142],{},[121,632,633],{},"Laravel filesystem disk",[103,635,636,640,642],{},[121,637,638],{},[124,639,239],{},[121,641,242],{},[121,643],{},[103,645,646,650,652],{},[121,647,648],{},[124,649,251],{},[121,651,242],{},[121,653],{},[81,655,657],{"id":656},"relationships","Relationships",[659,660,664],"pre",{"className":661,"code":663,"language":204},[662],"language-text","Commentable Model (e.g., Project)\n └── comments (morphMany)\n ├── commenter (morphTo → User)\n ├── parent (belongsTo → Comment)\n ├── replies (hasMany → Comment)\n ├── reactions (hasMany → Reaction)\n ├── attachments (hasMany → Attachment)\n └── mentions (morphToMany → User)\n",[124,665,663],{"__ignoreMap":666},"",[86,668,669],{},"All relationships are polymorphic, allowing the same comment system to work across any number of models in your application.",{"title":666,"searchDepth":671,"depth":671,"links":672},2,[673,681],{"id":83,"depth":671,"text":84,"children":674},[675,677,678,679,680],{"id":92,"depth":676,"text":92},3,{"id":268,"depth":676,"text":268},{"id":366,"depth":676,"text":366},{"id":445,"depth":676,"text":445},{"id":536,"depth":676,"text":536},{"id":656,"depth":671,"text":657},"Tables, relationships, and indexes used by the Comments package.","md",null,{},{"icon":59},{"description":688,"title":56},"Database schema reference for the Comments package.","5_kn3a7TCJOh1wLcKzZt0UvBJvm6q5qnwOrAjg4Pydw",[691,693],{"title":51,"path":52,"stem":53,"description":692,"icon":54,"children":-1},"Comment notifications, subscriptions, and real-time updates.",{"title":66,"path":67,"stem":68,"description":694,"icon":69,"children":-1},"How to contribute to Comments",1774619385139] \ No newline at end of file diff --git a/essentials/mentions.html b/essentials/mentions.html index ab93175..2d73ae2 100644 --- a/essentials/mentions.html +++ b/essentials/mentions.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Mentions - Comments
Comments Logo
1.x
Essentials

Mentions

User @mentions with autocomplete and notification support.

How Mentions Work

Type @ in the comment editor to trigger user autocomplete. Select a user to insert a mention. When the comment is saved, the MentionParser extracts mentions and:

  1. Syncs mention records in the comment_mentions table
  2. Dispatches a UserMentioned event for each newly mentioned user
  3. The SendUserMentionedNotification listener sends notifications
  4. If auto-subscribe is enabled, mentioned users are subscribed to the thread

Default Resolver

The DefaultMentionResolver searches the commenter model by name:

// Searches: User::where('name', 'like', "{$query}%")
+}Mentions - Comments
Comments Logo
1.x
Essentials

Mentions

User @mentions with autocomplete and notification support.

How Mentions Work

Type @ in the comment editor to trigger user autocomplete. Select a user to insert a mention. When the comment is saved, the MentionParser extracts mentions and:

  1. Syncs mention records in the comment_mentions table
  2. Dispatches a UserMentioned event for each newly mentioned user
  3. The SendUserMentionedNotification listener sends notifications
  4. If auto-subscribe is enabled, mentioned users are subscribed to the thread

Default Resolver

The DefaultMentionResolver searches the commenter model by name:

// Searches: User::where('name', 'like', "{$query}%")
 // Limited to: config('comments.mentions.max_results') results
 

Custom Mention Resolver

Implement the MentionResolver interface to customize user search behavior:

namespace App\Comments;
 
@@ -125,4 +125,4 @@
     'resolver' => App\Comments\TeamMentionResolver::class,
     'max_results' => 5,
 ],
-

Configuration

KeyDefaultDescription
mentions.resolverDefaultMentionResolver::classUser search implementation
mentions.max_results5Maximum autocomplete results
Copyright © 2026
\ No newline at end of file +

Configuration

KeyDefaultDescription
mentions.resolverDefaultMentionResolver::classUser search implementation
mentions.max_results5Maximum autocomplete results
Copyright © 2026
\ No newline at end of file diff --git a/essentials/mentions/_payload.json b/essentials/mentions/_payload.json index 74feff0..4d0625b 100644 --- a/essentials/mentions/_payload.json +++ b/essentials/mentions/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":732},["ShallowReactive",2],{"navigation_docs":3,"-essentials-mentions":75,"-essentials-mentions-surround":727},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":36,"body":77,"description":719,"extension":720,"links":721,"meta":722,"navigation":723,"path":37,"seo":724,"stem":38,"__hash__":726},"docs\u002F2.essentials\u002F3.mentions.md",{"type":78,"value":79,"toc":713},"minimark",[80,85,98,126,130,136,160,164,171,574,577,653,656,709],[81,82,84],"h2",{"id":83},"how-mentions-work","How Mentions Work",[86,87,88,89,93,94,97],"p",{},"Type ",[90,91,92],"code",{},"@"," in the comment editor to trigger user autocomplete. Select a user to insert a mention. When the comment is saved, the ",[90,95,96],{},"MentionParser"," extracts mentions and:",[99,100,101,109,116,123],"ol",{},[102,103,104,105,108],"li",{},"Syncs mention records in the ",[90,106,107],{},"comment_mentions"," table",[102,110,111,112,115],{},"Dispatches a ",[90,113,114],{},"UserMentioned"," event for each newly mentioned user",[102,117,118,119,122],{},"The ",[90,120,121],{},"SendUserMentionedNotification"," listener sends notifications",[102,124,125],{},"If auto-subscribe is enabled, mentioned users are subscribed to the thread",[81,127,129],{"id":128},"default-resolver","Default Resolver",[86,131,118,132,135],{},[90,133,134],{},"DefaultMentionResolver"," searches the commenter model by name:",[137,138,143],"pre",{"className":139,"code":140,"language":141,"meta":142,"style":142},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Searches: User::where('name', 'like', \"{$query}%\")\n\u002F\u002F Limited to: config('comments.mentions.max_results') results\n","php","",[90,144,145,154],{"__ignoreMap":142},[146,147,150],"span",{"class":148,"line":149},"line",1,[146,151,153],{"class":152},"sHwdD","\u002F\u002F Searches: User::where('name', 'like', \"{$query}%\")\n",[146,155,157],{"class":148,"line":156},2,[146,158,159],{"class":152},"\u002F\u002F Limited to: config('comments.mentions.max_results') results\n",[81,161,163],{"id":162},"custom-mention-resolver","Custom Mention Resolver",[86,165,166,167,170],{},"Implement the ",[90,168,169],{},"MentionResolver"," interface to customize user search behavior:",[137,172,174],{"className":139,"code":173,"language":141,"meta":142,"style":142},"namespace App\\Comments;\n\nuse Illuminate\\Support\\Collection;\nuse Relaticle\\Comments\\Contracts\\MentionResolver;\n\nclass TeamMentionResolver implements MentionResolver\n{\n public function search(string $query): Collection\n {\n return User::query()\n ->where('team_id', auth()->user()->team_id)\n ->where('name', 'like', \"{$query}%\")\n ->limit(config('comments.mentions.max_results'))\n ->get();\n }\n\n public function resolveByNames(array $names): Collection\n {\n return User::query()\n ->where('team_id', auth()->user()->team_id)\n ->whereIn('name', $names)\n ->get();\n }\n}\n",[90,175,176,196,202,224,247,252,268,274,305,311,329,368,412,437,448,454,459,483,488,501,530,554,563,568],{"__ignoreMap":142},[146,177,178,182,186,190,193],{"class":148,"line":149},[146,179,181],{"class":180},"sbssI","namespace",[146,183,185],{"class":184},"sBMFI"," App",[146,187,189],{"class":188},"sMK4o","\\",[146,191,192],{"class":184},"Comments",[146,194,195],{"class":188},";\n",[146,197,198],{"class":148,"line":156},[146,199,201],{"emptyLinePlaceholder":200},true,"\n",[146,203,205,208,212,214,217,219,222],{"class":148,"line":204},3,[146,206,207],{"class":180},"use",[146,209,211],{"class":210},"sTEyZ"," Illuminate",[146,213,189],{"class":188},[146,215,216],{"class":210},"Support",[146,218,189],{"class":188},[146,220,221],{"class":210},"Collection",[146,223,195],{"class":188},[146,225,227,229,232,234,236,238,241,243,245],{"class":148,"line":226},4,[146,228,207],{"class":180},[146,230,231],{"class":210}," Relaticle",[146,233,189],{"class":188},[146,235,192],{"class":210},[146,237,189],{"class":188},[146,239,240],{"class":210},"Contracts",[146,242,189],{"class":188},[146,244,169],{"class":210},[146,246,195],{"class":188},[146,248,250],{"class":148,"line":249},5,[146,251,201],{"emptyLinePlaceholder":200},[146,253,255,259,262,265],{"class":148,"line":254},6,[146,256,258],{"class":257},"spNyl","class",[146,260,261],{"class":184}," TeamMentionResolver",[146,263,264],{"class":257}," implements",[146,266,267],{"class":184}," MentionResolver\n",[146,269,271],{"class":148,"line":270},7,[146,272,273],{"class":188},"{\n",[146,275,277,280,283,287,290,293,296,299,302],{"class":148,"line":276},8,[146,278,279],{"class":257}," public",[146,281,282],{"class":257}," function",[146,284,286],{"class":285},"s2Zo4"," search",[146,288,289],{"class":188},"(",[146,291,292],{"class":180},"string",[146,294,295],{"class":188}," $",[146,297,298],{"class":210},"query",[146,300,301],{"class":188},"):",[146,303,304],{"class":184}," Collection\n",[146,306,308],{"class":148,"line":307},9,[146,309,310],{"class":188}," {\n",[146,312,314,318,321,324,326],{"class":148,"line":313},10,[146,315,317],{"class":316},"s7zQu"," return",[146,319,320],{"class":184}," User",[146,322,323],{"class":188},"::",[146,325,298],{"class":285},[146,327,328],{"class":188},"()\n",[146,330,332,335,338,340,343,347,349,352,355,358,361,363,365],{"class":148,"line":331},11,[146,333,334],{"class":188}," ->",[146,336,337],{"class":285},"where",[146,339,289],{"class":188},[146,341,342],{"class":188},"'",[146,344,346],{"class":345},"sfazB","team_id",[146,348,342],{"class":188},[146,350,351],{"class":188},",",[146,353,354],{"class":285}," auth",[146,356,357],{"class":188},"()->",[146,359,360],{"class":285},"user",[146,362,357],{"class":188},[146,364,346],{"class":210},[146,366,367],{"class":188},")\n",[146,369,371,373,375,377,379,382,384,386,389,392,394,396,399,401,404,407,410],{"class":148,"line":370},12,[146,372,334],{"class":188},[146,374,337],{"class":285},[146,376,289],{"class":188},[146,378,342],{"class":188},[146,380,381],{"class":345},"name",[146,383,342],{"class":188},[146,385,351],{"class":188},[146,387,388],{"class":188}," '",[146,390,391],{"class":345},"like",[146,393,342],{"class":188},[146,395,351],{"class":188},[146,397,398],{"class":188}," \"{$",[146,400,298],{"class":210},[146,402,403],{"class":188},"}",[146,405,406],{"class":345},"%",[146,408,409],{"class":188},"\"",[146,411,367],{"class":188},[146,413,415,417,420,422,425,427,429,432,434],{"class":148,"line":414},13,[146,416,334],{"class":188},[146,418,419],{"class":285},"limit",[146,421,289],{"class":188},[146,423,424],{"class":285},"config",[146,426,289],{"class":188},[146,428,342],{"class":188},[146,430,431],{"class":345},"comments.mentions.max_results",[146,433,342],{"class":188},[146,435,436],{"class":188},"))\n",[146,438,440,442,445],{"class":148,"line":439},14,[146,441,334],{"class":188},[146,443,444],{"class":285},"get",[146,446,447],{"class":188},"();\n",[146,449,451],{"class":148,"line":450},15,[146,452,453],{"class":188}," }\n",[146,455,457],{"class":148,"line":456},16,[146,458,201],{"emptyLinePlaceholder":200},[146,460,462,464,466,469,471,474,476,479,481],{"class":148,"line":461},17,[146,463,279],{"class":257},[146,465,282],{"class":257},[146,467,468],{"class":285}," resolveByNames",[146,470,289],{"class":188},[146,472,473],{"class":180},"array",[146,475,295],{"class":188},[146,477,478],{"class":210},"names",[146,480,301],{"class":188},[146,482,304],{"class":184},[146,484,486],{"class":148,"line":485},18,[146,487,310],{"class":188},[146,489,491,493,495,497,499],{"class":148,"line":490},19,[146,492,317],{"class":316},[146,494,320],{"class":184},[146,496,323],{"class":188},[146,498,298],{"class":285},[146,500,328],{"class":188},[146,502,504,506,508,510,512,514,516,518,520,522,524,526,528],{"class":148,"line":503},20,[146,505,334],{"class":188},[146,507,337],{"class":285},[146,509,289],{"class":188},[146,511,342],{"class":188},[146,513,346],{"class":345},[146,515,342],{"class":188},[146,517,351],{"class":188},[146,519,354],{"class":285},[146,521,357],{"class":188},[146,523,360],{"class":285},[146,525,357],{"class":188},[146,527,346],{"class":210},[146,529,367],{"class":188},[146,531,533,535,538,540,542,544,546,548,550,552],{"class":148,"line":532},21,[146,534,334],{"class":188},[146,536,537],{"class":285},"whereIn",[146,539,289],{"class":188},[146,541,342],{"class":188},[146,543,381],{"class":345},[146,545,342],{"class":188},[146,547,351],{"class":188},[146,549,295],{"class":188},[146,551,478],{"class":210},[146,553,367],{"class":188},[146,555,557,559,561],{"class":148,"line":556},22,[146,558,334],{"class":188},[146,560,444],{"class":285},[146,562,447],{"class":188},[146,564,566],{"class":148,"line":565},23,[146,567,453],{"class":188},[146,569,571],{"class":148,"line":570},24,[146,572,573],{"class":188},"}\n",[86,575,576],{},"Register it in your config:",[137,578,580],{"className":139,"code":579,"language":141,"meta":142,"style":142},"\u002F\u002F config\u002Fcomments.php\n'mentions' => [\n 'resolver' => App\\Comments\\TeamMentionResolver::class,\n 'max_results' => 5,\n],\n",[90,581,582,587,602,632,648],{"__ignoreMap":142},[146,583,584],{"class":148,"line":149},[146,585,586],{"class":152},"\u002F\u002F config\u002Fcomments.php\n",[146,588,589,591,594,596,599],{"class":148,"line":156},[146,590,342],{"class":188},[146,592,593],{"class":345},"mentions",[146,595,342],{"class":188},[146,597,598],{"class":188}," =>",[146,600,601],{"class":188}," [\n",[146,603,604,607,610,612,614,616,618,620,622,625,627,629],{"class":148,"line":204},[146,605,606],{"class":188}," '",[146,608,609],{"class":345},"resolver",[146,611,342],{"class":188},[146,613,598],{"class":188},[146,615,185],{"class":210},[146,617,189],{"class":188},[146,619,192],{"class":210},[146,621,189],{"class":188},[146,623,624],{"class":184},"TeamMentionResolver",[146,626,323],{"class":188},[146,628,258],{"class":180},[146,630,631],{"class":188},",\n",[146,633,634,636,639,641,643,646],{"class":148,"line":226},[146,635,606],{"class":188},[146,637,638],{"class":345},"max_results",[146,640,342],{"class":188},[146,642,598],{"class":188},[146,644,645],{"class":180}," 5",[146,647,631],{"class":188},[146,649,650],{"class":148,"line":249},[146,651,652],{"class":188},"],\n",[81,654,26],{"id":655},"configuration",[657,658,659,675],"table",{},[660,661,662],"thead",{},[663,664,665,669,672],"tr",{},[666,667,668],"th",{},"Key",[666,670,671],{},"Default",[666,673,674],{},"Description",[676,677,678,694],"tbody",{},[663,679,680,686,691],{},[681,682,683],"td",{},[90,684,685],{},"mentions.resolver",[681,687,688],{},[90,689,690],{},"DefaultMentionResolver::class",[681,692,693],{},"User search implementation",[663,695,696,701,706],{},[681,697,698],{},[90,699,700],{},"mentions.max_results",[681,702,703],{},[90,704,705],{},"5",[681,707,708],{},"Maximum autocomplete results",[710,711,712],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":142,"searchDepth":156,"depth":156,"links":714},[715,716,717,718],{"id":83,"depth":156,"text":84},{"id":128,"depth":156,"text":129},{"id":162,"depth":156,"text":163},{"id":655,"depth":156,"text":26},"User @mentions with autocomplete and notification support.","md",null,{},{"icon":39},{"description":725,"title":36},"Configure @mention autocomplete and create custom mention resolvers.","kQQwvRy9HYB1t8O3MnVh58m8bi_XmvTWpYWrdhjepK8",[728,730],{"title":31,"path":32,"stem":33,"description":729,"icon":34,"children":-1},"Control who can create, edit, delete, and reply to comments.",{"title":41,"path":42,"stem":43,"description":731,"icon":44,"children":-1},"Emoji reactions on comments.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":732},["ShallowReactive",2],{"navigation_docs":3,"-essentials-mentions":75,"-essentials-mentions-surround":727},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":36,"body":77,"description":719,"extension":720,"links":721,"meta":722,"navigation":723,"path":37,"seo":724,"stem":38,"__hash__":726},"docs\u002F2.essentials\u002F3.mentions.md",{"type":78,"value":79,"toc":713},"minimark",[80,85,98,126,130,136,160,164,171,574,577,653,656,709],[81,82,84],"h2",{"id":83},"how-mentions-work","How Mentions Work",[86,87,88,89,93,94,97],"p",{},"Type ",[90,91,92],"code",{},"@"," in the comment editor to trigger user autocomplete. Select a user to insert a mention. When the comment is saved, the ",[90,95,96],{},"MentionParser"," extracts mentions and:",[99,100,101,109,116,123],"ol",{},[102,103,104,105,108],"li",{},"Syncs mention records in the ",[90,106,107],{},"comment_mentions"," table",[102,110,111,112,115],{},"Dispatches a ",[90,113,114],{},"UserMentioned"," event for each newly mentioned user",[102,117,118,119,122],{},"The ",[90,120,121],{},"SendUserMentionedNotification"," listener sends notifications",[102,124,125],{},"If auto-subscribe is enabled, mentioned users are subscribed to the thread",[81,127,129],{"id":128},"default-resolver","Default Resolver",[86,131,118,132,135],{},[90,133,134],{},"DefaultMentionResolver"," searches the commenter model by name:",[137,138,143],"pre",{"className":139,"code":140,"language":141,"meta":142,"style":142},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Searches: User::where('name', 'like', \"{$query}%\")\n\u002F\u002F Limited to: config('comments.mentions.max_results') results\n","php","",[90,144,145,154],{"__ignoreMap":142},[146,147,150],"span",{"class":148,"line":149},"line",1,[146,151,153],{"class":152},"sHwdD","\u002F\u002F Searches: User::where('name', 'like', \"{$query}%\")\n",[146,155,157],{"class":148,"line":156},2,[146,158,159],{"class":152},"\u002F\u002F Limited to: config('comments.mentions.max_results') results\n",[81,161,163],{"id":162},"custom-mention-resolver","Custom Mention Resolver",[86,165,166,167,170],{},"Implement the ",[90,168,169],{},"MentionResolver"," interface to customize user search behavior:",[137,172,174],{"className":139,"code":173,"language":141,"meta":142,"style":142},"namespace App\\Comments;\n\nuse Illuminate\\Support\\Collection;\nuse Relaticle\\Comments\\Contracts\\MentionResolver;\n\nclass TeamMentionResolver implements MentionResolver\n{\n public function search(string $query): Collection\n {\n return User::query()\n ->where('team_id', auth()->user()->team_id)\n ->where('name', 'like', \"{$query}%\")\n ->limit(config('comments.mentions.max_results'))\n ->get();\n }\n\n public function resolveByNames(array $names): Collection\n {\n return User::query()\n ->where('team_id', auth()->user()->team_id)\n ->whereIn('name', $names)\n ->get();\n }\n}\n",[90,175,176,196,202,224,247,252,268,274,305,311,329,368,412,437,448,454,459,483,488,501,530,554,563,568],{"__ignoreMap":142},[146,177,178,182,186,190,193],{"class":148,"line":149},[146,179,181],{"class":180},"sbssI","namespace",[146,183,185],{"class":184},"sBMFI"," App",[146,187,189],{"class":188},"sMK4o","\\",[146,191,192],{"class":184},"Comments",[146,194,195],{"class":188},";\n",[146,197,198],{"class":148,"line":156},[146,199,201],{"emptyLinePlaceholder":200},true,"\n",[146,203,205,208,212,214,217,219,222],{"class":148,"line":204},3,[146,206,207],{"class":180},"use",[146,209,211],{"class":210},"sTEyZ"," Illuminate",[146,213,189],{"class":188},[146,215,216],{"class":210},"Support",[146,218,189],{"class":188},[146,220,221],{"class":210},"Collection",[146,223,195],{"class":188},[146,225,227,229,232,234,236,238,241,243,245],{"class":148,"line":226},4,[146,228,207],{"class":180},[146,230,231],{"class":210}," Relaticle",[146,233,189],{"class":188},[146,235,192],{"class":210},[146,237,189],{"class":188},[146,239,240],{"class":210},"Contracts",[146,242,189],{"class":188},[146,244,169],{"class":210},[146,246,195],{"class":188},[146,248,250],{"class":148,"line":249},5,[146,251,201],{"emptyLinePlaceholder":200},[146,253,255,259,262,265],{"class":148,"line":254},6,[146,256,258],{"class":257},"spNyl","class",[146,260,261],{"class":184}," TeamMentionResolver",[146,263,264],{"class":257}," implements",[146,266,267],{"class":184}," MentionResolver\n",[146,269,271],{"class":148,"line":270},7,[146,272,273],{"class":188},"{\n",[146,275,277,280,283,287,290,293,296,299,302],{"class":148,"line":276},8,[146,278,279],{"class":257}," public",[146,281,282],{"class":257}," function",[146,284,286],{"class":285},"s2Zo4"," search",[146,288,289],{"class":188},"(",[146,291,292],{"class":180},"string",[146,294,295],{"class":188}," $",[146,297,298],{"class":210},"query",[146,300,301],{"class":188},"):",[146,303,304],{"class":184}," Collection\n",[146,306,308],{"class":148,"line":307},9,[146,309,310],{"class":188}," {\n",[146,312,314,318,321,324,326],{"class":148,"line":313},10,[146,315,317],{"class":316},"s7zQu"," return",[146,319,320],{"class":184}," User",[146,322,323],{"class":188},"::",[146,325,298],{"class":285},[146,327,328],{"class":188},"()\n",[146,330,332,335,338,340,343,347,349,352,355,358,361,363,365],{"class":148,"line":331},11,[146,333,334],{"class":188}," ->",[146,336,337],{"class":285},"where",[146,339,289],{"class":188},[146,341,342],{"class":188},"'",[146,344,346],{"class":345},"sfazB","team_id",[146,348,342],{"class":188},[146,350,351],{"class":188},",",[146,353,354],{"class":285}," auth",[146,356,357],{"class":188},"()->",[146,359,360],{"class":285},"user",[146,362,357],{"class":188},[146,364,346],{"class":210},[146,366,367],{"class":188},")\n",[146,369,371,373,375,377,379,382,384,386,389,392,394,396,399,401,404,407,410],{"class":148,"line":370},12,[146,372,334],{"class":188},[146,374,337],{"class":285},[146,376,289],{"class":188},[146,378,342],{"class":188},[146,380,381],{"class":345},"name",[146,383,342],{"class":188},[146,385,351],{"class":188},[146,387,388],{"class":188}," '",[146,390,391],{"class":345},"like",[146,393,342],{"class":188},[146,395,351],{"class":188},[146,397,398],{"class":188}," \"{$",[146,400,298],{"class":210},[146,402,403],{"class":188},"}",[146,405,406],{"class":345},"%",[146,408,409],{"class":188},"\"",[146,411,367],{"class":188},[146,413,415,417,420,422,425,427,429,432,434],{"class":148,"line":414},13,[146,416,334],{"class":188},[146,418,419],{"class":285},"limit",[146,421,289],{"class":188},[146,423,424],{"class":285},"config",[146,426,289],{"class":188},[146,428,342],{"class":188},[146,430,431],{"class":345},"comments.mentions.max_results",[146,433,342],{"class":188},[146,435,436],{"class":188},"))\n",[146,438,440,442,445],{"class":148,"line":439},14,[146,441,334],{"class":188},[146,443,444],{"class":285},"get",[146,446,447],{"class":188},"();\n",[146,449,451],{"class":148,"line":450},15,[146,452,453],{"class":188}," }\n",[146,455,457],{"class":148,"line":456},16,[146,458,201],{"emptyLinePlaceholder":200},[146,460,462,464,466,469,471,474,476,479,481],{"class":148,"line":461},17,[146,463,279],{"class":257},[146,465,282],{"class":257},[146,467,468],{"class":285}," resolveByNames",[146,470,289],{"class":188},[146,472,473],{"class":180},"array",[146,475,295],{"class":188},[146,477,478],{"class":210},"names",[146,480,301],{"class":188},[146,482,304],{"class":184},[146,484,486],{"class":148,"line":485},18,[146,487,310],{"class":188},[146,489,491,493,495,497,499],{"class":148,"line":490},19,[146,492,317],{"class":316},[146,494,320],{"class":184},[146,496,323],{"class":188},[146,498,298],{"class":285},[146,500,328],{"class":188},[146,502,504,506,508,510,512,514,516,518,520,522,524,526,528],{"class":148,"line":503},20,[146,505,334],{"class":188},[146,507,337],{"class":285},[146,509,289],{"class":188},[146,511,342],{"class":188},[146,513,346],{"class":345},[146,515,342],{"class":188},[146,517,351],{"class":188},[146,519,354],{"class":285},[146,521,357],{"class":188},[146,523,360],{"class":285},[146,525,357],{"class":188},[146,527,346],{"class":210},[146,529,367],{"class":188},[146,531,533,535,538,540,542,544,546,548,550,552],{"class":148,"line":532},21,[146,534,334],{"class":188},[146,536,537],{"class":285},"whereIn",[146,539,289],{"class":188},[146,541,342],{"class":188},[146,543,381],{"class":345},[146,545,342],{"class":188},[146,547,351],{"class":188},[146,549,295],{"class":188},[146,551,478],{"class":210},[146,553,367],{"class":188},[146,555,557,559,561],{"class":148,"line":556},22,[146,558,334],{"class":188},[146,560,444],{"class":285},[146,562,447],{"class":188},[146,564,566],{"class":148,"line":565},23,[146,567,453],{"class":188},[146,569,571],{"class":148,"line":570},24,[146,572,573],{"class":188},"}\n",[86,575,576],{},"Register it in your config:",[137,578,580],{"className":139,"code":579,"language":141,"meta":142,"style":142},"\u002F\u002F config\u002Fcomments.php\n'mentions' => [\n 'resolver' => App\\Comments\\TeamMentionResolver::class,\n 'max_results' => 5,\n],\n",[90,581,582,587,602,632,648],{"__ignoreMap":142},[146,583,584],{"class":148,"line":149},[146,585,586],{"class":152},"\u002F\u002F config\u002Fcomments.php\n",[146,588,589,591,594,596,599],{"class":148,"line":156},[146,590,342],{"class":188},[146,592,593],{"class":345},"mentions",[146,595,342],{"class":188},[146,597,598],{"class":188}," =>",[146,600,601],{"class":188}," [\n",[146,603,604,607,610,612,614,616,618,620,622,625,627,629],{"class":148,"line":204},[146,605,606],{"class":188}," '",[146,608,609],{"class":345},"resolver",[146,611,342],{"class":188},[146,613,598],{"class":188},[146,615,185],{"class":210},[146,617,189],{"class":188},[146,619,192],{"class":210},[146,621,189],{"class":188},[146,623,624],{"class":184},"TeamMentionResolver",[146,626,323],{"class":188},[146,628,258],{"class":180},[146,630,631],{"class":188},",\n",[146,633,634,636,639,641,643,646],{"class":148,"line":226},[146,635,606],{"class":188},[146,637,638],{"class":345},"max_results",[146,640,342],{"class":188},[146,642,598],{"class":188},[146,644,645],{"class":180}," 5",[146,647,631],{"class":188},[146,649,650],{"class":148,"line":249},[146,651,652],{"class":188},"],\n",[81,654,26],{"id":655},"configuration",[657,658,659,675],"table",{},[660,661,662],"thead",{},[663,664,665,669,672],"tr",{},[666,667,668],"th",{},"Key",[666,670,671],{},"Default",[666,673,674],{},"Description",[676,677,678,694],"tbody",{},[663,679,680,686,691],{},[681,682,683],"td",{},[90,684,685],{},"mentions.resolver",[681,687,688],{},[90,689,690],{},"DefaultMentionResolver::class",[681,692,693],{},"User search implementation",[663,695,696,701,706],{},[681,697,698],{},[90,699,700],{},"mentions.max_results",[681,702,703],{},[90,704,705],{},"5",[681,707,708],{},"Maximum autocomplete results",[710,711,712],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":142,"searchDepth":156,"depth":156,"links":714},[715,716,717,718],{"id":83,"depth":156,"text":84},{"id":128,"depth":156,"text":129},{"id":162,"depth":156,"text":163},{"id":655,"depth":156,"text":26},"User @mentions with autocomplete and notification support.","md",null,{},{"icon":39},{"description":725,"title":36},"Configure @mention autocomplete and create custom mention resolvers.","kQQwvRy9HYB1t8O3MnVh58m8bi_XmvTWpYWrdhjepK8",[728,730],{"title":31,"path":32,"stem":33,"description":729,"icon":34,"children":-1},"Control who can create, edit, delete, and reply to comments.",{"title":41,"path":42,"stem":43,"description":731,"icon":44,"children":-1},"Emoji reactions on comments.",1774619385139] \ No newline at end of file diff --git a/essentials/notifications.html b/essentials/notifications.html index 95f6ee2..84c7af4 100644 --- a/essentials/notifications.html +++ b/essentials/notifications.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Notifications - Comments
Comments Logo
1.x
Essentials

Notifications

Comment notifications, subscriptions, and real-time updates.

Notification Types

Two notification classes are included:

CommentRepliedNotification

Sent to all thread subscribers when a new comment or reply is posted. The comment author is excluded from receiving their own notification.

UserMentionedNotification

Sent to a user when they are @mentioned in a comment. Self-mentions are ignored.

Channels

// config/comments.php
+}Notifications - Comments
Comments Logo
1.x
Essentials

Notifications

Comment notifications, subscriptions, and real-time updates.

Notification Types

Two notification classes are included:

CommentRepliedNotification

Sent to all thread subscribers when a new comment or reply is posted. The comment author is excluded from receiving their own notification.

UserMentionedNotification

Sent to a user when they are @mentioned in a comment. Self-mentions are ignored.

Channels

// config/comments.php
 'notifications' => [
     'channels' => ['database'],
     'enabled' => true,
@@ -128,4 +128,4 @@
 

Set to null to disable polling entirely.

Disabling Notifications

'notifications' => [
     'enabled' => false,
 ],
-

This disables all notification dispatching. Subscriptions and events still work, but no notifications are sent.

Copyright © 2026
\ No newline at end of file +

This disables all notification dispatching. Subscriptions and events still work, but no notifications are sent.

Copyright © 2026
\ No newline at end of file diff --git a/essentials/notifications/_payload.json b/essentials/notifications/_payload.json index dc09b5a..b7fb4af 100644 --- a/essentials/notifications/_payload.json +++ b/essentials/notifications/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":799},["ShallowReactive",2],{"navigation_docs":3,"-essentials-notifications":75,"-essentials-notifications-surround":794},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":51,"body":77,"description":786,"extension":787,"links":788,"meta":789,"navigation":790,"path":52,"seo":791,"stem":53,"__hash__":793},"docs\u002F2.essentials\u002F6.notifications.md",{"type":78,"value":79,"toc":768},"minimark",[80,85,89,94,97,101,104,108,191,202,266,270,273,277,311,314,324,328,331,335,500,504,589,593,597,600,658,664,667,671,674,716,723,727,761,764],[81,82,84],"h2",{"id":83},"notification-types","Notification Types",[86,87,88],"p",{},"Two notification classes are included:",[90,91,93],"h3",{"id":92},"commentrepliednotification","CommentRepliedNotification",[86,95,96],{},"Sent to all thread subscribers when a new comment or reply is posted. The comment author is excluded from receiving their own notification.",[90,98,100],{"id":99},"usermentionednotification","UserMentionedNotification",[86,102,103],{},"Sent to a user when they are @mentioned in a comment. Self-mentions are ignored.",[81,105,107],{"id":106},"channels","Channels",[109,110,115],"pre",{"className":111,"code":112,"language":113,"meta":114,"style":114},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F config\u002Fcomments.php\n'notifications' => [\n 'channels' => ['database'],\n 'enabled' => true,\n],\n","php","",[116,117,118,127,146,171,186],"code",{"__ignoreMap":114},[119,120,123],"span",{"class":121,"line":122},"line",1,[119,124,126],{"class":125},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[119,128,130,134,138,140,143],{"class":121,"line":129},2,[119,131,133],{"class":132},"sMK4o","'",[119,135,137],{"class":136},"sfazB","notifications",[119,139,133],{"class":132},[119,141,142],{"class":132}," =>",[119,144,145],{"class":132}," [\n",[119,147,149,152,154,156,158,161,163,166,168],{"class":121,"line":148},3,[119,150,151],{"class":132}," '",[119,153,106],{"class":136},[119,155,133],{"class":132},[119,157,142],{"class":132},[119,159,160],{"class":132}," [",[119,162,133],{"class":132},[119,164,165],{"class":136},"database",[119,167,133],{"class":132},[119,169,170],{"class":132},"],\n",[119,172,174,176,179,181,183],{"class":121,"line":173},4,[119,175,151],{"class":132},[119,177,178],{"class":136},"enabled",[119,180,133],{"class":132},[119,182,142],{"class":132},[119,184,185],{"class":132}," true,\n",[119,187,189],{"class":121,"line":188},5,[119,190,170],{"class":132},[86,192,193,194,197,198,201],{},"Available channels: ",[116,195,196],{},"'database'"," and ",[116,199,200],{},"'mail'",". Add both to send email notifications alongside database notifications:",[109,203,205],{"className":111,"code":204,"language":113,"meta":114,"style":114},"'notifications' => [\n 'channels' => ['database', 'mail'],\n 'enabled' => true,\n],\n",[116,206,207,219,250,262],{"__ignoreMap":114},[119,208,209,211,213,215,217],{"class":121,"line":122},[119,210,133],{"class":132},[119,212,137],{"class":136},[119,214,133],{"class":132},[119,216,142],{"class":132},[119,218,145],{"class":132},[119,220,221,223,225,227,229,231,233,235,237,240,243,246,248],{"class":121,"line":129},[119,222,151],{"class":132},[119,224,106],{"class":136},[119,226,133],{"class":132},[119,228,142],{"class":132},[119,230,160],{"class":132},[119,232,133],{"class":132},[119,234,165],{"class":136},[119,236,133],{"class":132},[119,238,239],{"class":132},",",[119,241,242],{"class":132}," '",[119,244,245],{"class":136},"mail",[119,247,133],{"class":132},[119,249,170],{"class":132},[119,251,252,254,256,258,260],{"class":121,"line":148},[119,253,151],{"class":132},[119,255,178],{"class":136},[119,257,133],{"class":132},[119,259,142],{"class":132},[119,261,185],{"class":132},[119,263,264],{"class":121,"line":173},[119,265,170],{"class":132},[81,267,269],{"id":268},"subscriptions","Subscriptions",[86,271,272],{},"Users can subscribe to comment threads on any commentable model. Subscribers receive notifications when new comments are posted.",[90,274,276],{"id":275},"auto-subscribe","Auto-Subscribe",[109,278,280],{"className":111,"code":279,"language":113,"meta":114,"style":114},"'subscriptions' => [\n 'auto_subscribe' => true,\n],\n",[116,281,282,294,307],{"__ignoreMap":114},[119,283,284,286,288,290,292],{"class":121,"line":122},[119,285,133],{"class":132},[119,287,268],{"class":136},[119,289,133],{"class":132},[119,291,142],{"class":132},[119,293,145],{"class":132},[119,295,296,298,301,303,305],{"class":121,"line":129},[119,297,151],{"class":132},[119,299,300],{"class":136},"auto_subscribe",[119,302,133],{"class":132},[119,304,142],{"class":132},[119,306,185],{"class":132},[119,308,309],{"class":121,"line":148},[119,310,170],{"class":132},[86,312,313],{},"When enabled:",[315,316,317,321],"ul",{},[318,319,320],"li",{},"Users are auto-subscribed when they post a comment",[318,322,323],{},"Users are auto-subscribed when they are @mentioned",[90,325,327],{"id":326},"manual-subscription","Manual Subscription",[86,329,330],{},"Users can toggle their subscription using the subscribe\u002Funsubscribe button in the comments UI.",[90,332,334],{"id":333},"programmatic-access","Programmatic Access",[109,336,338],{"className":111,"code":337,"language":113,"meta":114,"style":114},"use Relaticle\\Comments\\Models\\Subscription;\n\n\u002F\u002F Check subscription status\nSubscription::isSubscribed($commentable, $user);\n\n\u002F\u002F Subscribe\u002Funsubscribe\nSubscription::subscribe($commentable, $user);\nSubscription::unsubscribe($commentable, $user);\n\n\u002F\u002F Get all subscribers for a commentable\n$subscribers = Subscription::subscribersFor($commentable);\n",[116,339,340,369,375,380,409,413,419,441,463,468,474],{"__ignoreMap":114},[119,341,342,346,350,353,356,358,361,363,366],{"class":121,"line":122},[119,343,345],{"class":344},"sbssI","use",[119,347,349],{"class":348},"sTEyZ"," Relaticle",[119,351,352],{"class":132},"\\",[119,354,355],{"class":348},"Comments",[119,357,352],{"class":132},[119,359,360],{"class":348},"Models",[119,362,352],{"class":132},[119,364,365],{"class":348},"Subscription",[119,367,368],{"class":132},";\n",[119,370,371],{"class":121,"line":129},[119,372,374],{"emptyLinePlaceholder":373},true,"\n",[119,376,377],{"class":121,"line":148},[119,378,379],{"class":125},"\u002F\u002F Check subscription status\n",[119,381,382,385,388,392,395,398,400,403,406],{"class":121,"line":173},[119,383,365],{"class":384},"sBMFI",[119,386,387],{"class":132},"::",[119,389,391],{"class":390},"s2Zo4","isSubscribed",[119,393,394],{"class":132},"($",[119,396,397],{"class":348},"commentable",[119,399,239],{"class":132},[119,401,402],{"class":132}," $",[119,404,405],{"class":348},"user",[119,407,408],{"class":132},");\n",[119,410,411],{"class":121,"line":188},[119,412,374],{"emptyLinePlaceholder":373},[119,414,416],{"class":121,"line":415},6,[119,417,418],{"class":125},"\u002F\u002F Subscribe\u002Funsubscribe\n",[119,420,422,424,426,429,431,433,435,437,439],{"class":121,"line":421},7,[119,423,365],{"class":384},[119,425,387],{"class":132},[119,427,428],{"class":390},"subscribe",[119,430,394],{"class":132},[119,432,397],{"class":348},[119,434,239],{"class":132},[119,436,402],{"class":132},[119,438,405],{"class":348},[119,440,408],{"class":132},[119,442,444,446,448,451,453,455,457,459,461],{"class":121,"line":443},8,[119,445,365],{"class":384},[119,447,387],{"class":132},[119,449,450],{"class":390},"unsubscribe",[119,452,394],{"class":132},[119,454,397],{"class":348},[119,456,239],{"class":132},[119,458,402],{"class":132},[119,460,405],{"class":348},[119,462,408],{"class":132},[119,464,466],{"class":121,"line":465},9,[119,467,374],{"emptyLinePlaceholder":373},[119,469,471],{"class":121,"line":470},10,[119,472,473],{"class":125},"\u002F\u002F Get all subscribers for a commentable\n",[119,475,477,480,483,486,489,491,494,496,498],{"class":121,"line":476},11,[119,478,479],{"class":132},"$",[119,481,482],{"class":348},"subscribers ",[119,484,485],{"class":132},"=",[119,487,488],{"class":384}," Subscription",[119,490,387],{"class":132},[119,492,493],{"class":390},"subscribersFor",[119,495,394],{"class":132},[119,497,397],{"class":348},[119,499,408],{"class":132},[81,501,503],{"id":502},"events","Events",[505,506,507,523],"table",{},[508,509,510],"thead",{},[511,512,513,517,520],"tr",{},[514,515,516],"th",{},"Event",[514,518,519],{},"Trigger",[514,521,522],{},"Broadcasts",[524,525,526,540,552,564,576],"tbody",{},[511,527,528,534,537],{},[529,530,531],"td",{},[116,532,533],{},"CommentCreated",[529,535,536],{},"New comment or reply",[529,538,539],{},"Yes",[511,541,542,547,550],{},[529,543,544],{},[116,545,546],{},"CommentUpdated",[529,548,549],{},"Comment edited",[529,551,539],{},[511,553,554,559,562],{},[529,555,556],{},[116,557,558],{},"CommentDeleted",[529,560,561],{},"Comment soft-deleted",[529,563,539],{},[511,565,566,571,574],{},[529,567,568],{},[116,569,570],{},"CommentReacted",[529,572,573],{},"Reaction added\u002Fremoved",[529,575,539],{},[511,577,578,583,586],{},[529,579,580],{},[116,581,582],{},"UserMentioned",[529,584,585],{},"User @mentioned",[529,587,588],{},"No",[81,590,592],{"id":591},"real-time-updates","Real-time Updates",[90,594,596],{"id":595},"broadcasting","Broadcasting",[86,598,599],{},"Enable broadcasting for instant updates across browser sessions:",[109,601,603],{"className":111,"code":602,"language":113,"meta":114,"style":114},"\u002F\u002F config\u002Fcomments.php\n'broadcasting' => [\n 'enabled' => true,\n 'channel_prefix' => 'comments',\n],\n",[116,604,605,609,621,633,654],{"__ignoreMap":114},[119,606,607],{"class":121,"line":122},[119,608,126],{"class":125},[119,610,611,613,615,617,619],{"class":121,"line":129},[119,612,133],{"class":132},[119,614,595],{"class":136},[119,616,133],{"class":132},[119,618,142],{"class":132},[119,620,145],{"class":132},[119,622,623,625,627,629,631],{"class":121,"line":148},[119,624,151],{"class":132},[119,626,178],{"class":136},[119,628,133],{"class":132},[119,630,142],{"class":132},[119,632,185],{"class":132},[119,634,635,637,640,642,644,646,649,651],{"class":121,"line":173},[119,636,151],{"class":132},[119,638,639],{"class":136},"channel_prefix",[119,641,133],{"class":132},[119,643,142],{"class":132},[119,645,242],{"class":132},[119,647,648],{"class":136},"comments",[119,650,133],{"class":132},[119,652,653],{"class":132},",\n",[119,655,656],{"class":121,"line":188},[119,657,170],{"class":132},[86,659,660,661],{},"Events are broadcast on private channels: ",[116,662,663],{},"{prefix}.{commentable_type}.{commentable_id}",[86,665,666],{},"This requires Laravel Echo and a broadcasting driver (Pusher, Ably, etc.) configured in your application.",[90,668,670],{"id":669},"polling-fallback","Polling Fallback",[86,672,673],{},"When broadcasting is disabled, the Livewire component polls for updates:",[109,675,677],{"className":111,"code":676,"language":113,"meta":114,"style":114},"'polling' => [\n 'interval' => '10s',\n],\n",[116,678,679,692,712],{"__ignoreMap":114},[119,680,681,683,686,688,690],{"class":121,"line":122},[119,682,133],{"class":132},[119,684,685],{"class":136},"polling",[119,687,133],{"class":132},[119,689,142],{"class":132},[119,691,145],{"class":132},[119,693,694,696,699,701,703,705,708,710],{"class":121,"line":129},[119,695,151],{"class":132},[119,697,698],{"class":136},"interval",[119,700,133],{"class":132},[119,702,142],{"class":132},[119,704,242],{"class":132},[119,706,707],{"class":136},"10s",[119,709,133],{"class":132},[119,711,653],{"class":132},[119,713,714],{"class":121,"line":148},[119,715,170],{"class":132},[86,717,718,719,722],{},"Set to ",[116,720,721],{},"null"," to disable polling entirely.",[81,724,726],{"id":725},"disabling-notifications","Disabling Notifications",[109,728,730],{"className":111,"code":729,"language":113,"meta":114,"style":114},"'notifications' => [\n 'enabled' => false,\n],\n",[116,731,732,744,757],{"__ignoreMap":114},[119,733,734,736,738,740,742],{"class":121,"line":122},[119,735,133],{"class":132},[119,737,137],{"class":136},[119,739,133],{"class":132},[119,741,142],{"class":132},[119,743,145],{"class":132},[119,745,746,748,750,752,754],{"class":121,"line":129},[119,747,151],{"class":132},[119,749,178],{"class":136},[119,751,133],{"class":132},[119,753,142],{"class":132},[119,755,756],{"class":132}," false,\n",[119,758,759],{"class":121,"line":148},[119,760,170],{"class":132},[86,762,763],{},"This disables all notification dispatching. Subscriptions and events still work, but no notifications are sent.",[765,766,767],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":114,"searchDepth":129,"depth":129,"links":769},[770,774,775,780,781,785],{"id":83,"depth":129,"text":84,"children":771},[772,773],{"id":92,"depth":148,"text":93},{"id":99,"depth":148,"text":100},{"id":106,"depth":129,"text":107},{"id":268,"depth":129,"text":269,"children":776},[777,778,779],{"id":275,"depth":148,"text":276},{"id":326,"depth":148,"text":327},{"id":333,"depth":148,"text":334},{"id":502,"depth":129,"text":503},{"id":591,"depth":129,"text":592,"children":782},[783,784],{"id":595,"depth":148,"text":596},{"id":669,"depth":148,"text":670},{"id":725,"depth":129,"text":726},"Comment notifications, subscriptions, and real-time updates.","md",null,{},{"icon":54},{"description":792,"title":51},"Configure comment notifications, subscriptions, broadcasting, and polling.","drotOcQFMBQs0KXJ02mt95uFAuJkVVeqmKiZga1ki1c",[795,797],{"title":46,"path":47,"stem":48,"description":796,"icon":49,"children":-1},"File uploads for comments.",{"title":56,"path":57,"stem":58,"description":798,"icon":59,"children":-1},"Tables, relationships, and indexes used by the Comments package.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":799},["ShallowReactive",2],{"navigation_docs":3,"-essentials-notifications":75,"-essentials-notifications-surround":794},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":51,"body":77,"description":786,"extension":787,"links":788,"meta":789,"navigation":790,"path":52,"seo":791,"stem":53,"__hash__":793},"docs\u002F2.essentials\u002F6.notifications.md",{"type":78,"value":79,"toc":768},"minimark",[80,85,89,94,97,101,104,108,191,202,266,270,273,277,311,314,324,328,331,335,500,504,589,593,597,600,658,664,667,671,674,716,723,727,761,764],[81,82,84],"h2",{"id":83},"notification-types","Notification Types",[86,87,88],"p",{},"Two notification classes are included:",[90,91,93],"h3",{"id":92},"commentrepliednotification","CommentRepliedNotification",[86,95,96],{},"Sent to all thread subscribers when a new comment or reply is posted. The comment author is excluded from receiving their own notification.",[90,98,100],{"id":99},"usermentionednotification","UserMentionedNotification",[86,102,103],{},"Sent to a user when they are @mentioned in a comment. Self-mentions are ignored.",[81,105,107],{"id":106},"channels","Channels",[109,110,115],"pre",{"className":111,"code":112,"language":113,"meta":114,"style":114},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F config\u002Fcomments.php\n'notifications' => [\n 'channels' => ['database'],\n 'enabled' => true,\n],\n","php","",[116,117,118,127,146,171,186],"code",{"__ignoreMap":114},[119,120,123],"span",{"class":121,"line":122},"line",1,[119,124,126],{"class":125},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[119,128,130,134,138,140,143],{"class":121,"line":129},2,[119,131,133],{"class":132},"sMK4o","'",[119,135,137],{"class":136},"sfazB","notifications",[119,139,133],{"class":132},[119,141,142],{"class":132}," =>",[119,144,145],{"class":132}," [\n",[119,147,149,152,154,156,158,161,163,166,168],{"class":121,"line":148},3,[119,150,151],{"class":132}," '",[119,153,106],{"class":136},[119,155,133],{"class":132},[119,157,142],{"class":132},[119,159,160],{"class":132}," [",[119,162,133],{"class":132},[119,164,165],{"class":136},"database",[119,167,133],{"class":132},[119,169,170],{"class":132},"],\n",[119,172,174,176,179,181,183],{"class":121,"line":173},4,[119,175,151],{"class":132},[119,177,178],{"class":136},"enabled",[119,180,133],{"class":132},[119,182,142],{"class":132},[119,184,185],{"class":132}," true,\n",[119,187,189],{"class":121,"line":188},5,[119,190,170],{"class":132},[86,192,193,194,197,198,201],{},"Available channels: ",[116,195,196],{},"'database'"," and ",[116,199,200],{},"'mail'",". Add both to send email notifications alongside database notifications:",[109,203,205],{"className":111,"code":204,"language":113,"meta":114,"style":114},"'notifications' => [\n 'channels' => ['database', 'mail'],\n 'enabled' => true,\n],\n",[116,206,207,219,250,262],{"__ignoreMap":114},[119,208,209,211,213,215,217],{"class":121,"line":122},[119,210,133],{"class":132},[119,212,137],{"class":136},[119,214,133],{"class":132},[119,216,142],{"class":132},[119,218,145],{"class":132},[119,220,221,223,225,227,229,231,233,235,237,240,243,246,248],{"class":121,"line":129},[119,222,151],{"class":132},[119,224,106],{"class":136},[119,226,133],{"class":132},[119,228,142],{"class":132},[119,230,160],{"class":132},[119,232,133],{"class":132},[119,234,165],{"class":136},[119,236,133],{"class":132},[119,238,239],{"class":132},",",[119,241,242],{"class":132}," '",[119,244,245],{"class":136},"mail",[119,247,133],{"class":132},[119,249,170],{"class":132},[119,251,252,254,256,258,260],{"class":121,"line":148},[119,253,151],{"class":132},[119,255,178],{"class":136},[119,257,133],{"class":132},[119,259,142],{"class":132},[119,261,185],{"class":132},[119,263,264],{"class":121,"line":173},[119,265,170],{"class":132},[81,267,269],{"id":268},"subscriptions","Subscriptions",[86,271,272],{},"Users can subscribe to comment threads on any commentable model. Subscribers receive notifications when new comments are posted.",[90,274,276],{"id":275},"auto-subscribe","Auto-Subscribe",[109,278,280],{"className":111,"code":279,"language":113,"meta":114,"style":114},"'subscriptions' => [\n 'auto_subscribe' => true,\n],\n",[116,281,282,294,307],{"__ignoreMap":114},[119,283,284,286,288,290,292],{"class":121,"line":122},[119,285,133],{"class":132},[119,287,268],{"class":136},[119,289,133],{"class":132},[119,291,142],{"class":132},[119,293,145],{"class":132},[119,295,296,298,301,303,305],{"class":121,"line":129},[119,297,151],{"class":132},[119,299,300],{"class":136},"auto_subscribe",[119,302,133],{"class":132},[119,304,142],{"class":132},[119,306,185],{"class":132},[119,308,309],{"class":121,"line":148},[119,310,170],{"class":132},[86,312,313],{},"When enabled:",[315,316,317,321],"ul",{},[318,319,320],"li",{},"Users are auto-subscribed when they post a comment",[318,322,323],{},"Users are auto-subscribed when they are @mentioned",[90,325,327],{"id":326},"manual-subscription","Manual Subscription",[86,329,330],{},"Users can toggle their subscription using the subscribe\u002Funsubscribe button in the comments UI.",[90,332,334],{"id":333},"programmatic-access","Programmatic Access",[109,336,338],{"className":111,"code":337,"language":113,"meta":114,"style":114},"use Relaticle\\Comments\\Models\\Subscription;\n\n\u002F\u002F Check subscription status\nSubscription::isSubscribed($commentable, $user);\n\n\u002F\u002F Subscribe\u002Funsubscribe\nSubscription::subscribe($commentable, $user);\nSubscription::unsubscribe($commentable, $user);\n\n\u002F\u002F Get all subscribers for a commentable\n$subscribers = Subscription::subscribersFor($commentable);\n",[116,339,340,369,375,380,409,413,419,441,463,468,474],{"__ignoreMap":114},[119,341,342,346,350,353,356,358,361,363,366],{"class":121,"line":122},[119,343,345],{"class":344},"sbssI","use",[119,347,349],{"class":348},"sTEyZ"," Relaticle",[119,351,352],{"class":132},"\\",[119,354,355],{"class":348},"Comments",[119,357,352],{"class":132},[119,359,360],{"class":348},"Models",[119,362,352],{"class":132},[119,364,365],{"class":348},"Subscription",[119,367,368],{"class":132},";\n",[119,370,371],{"class":121,"line":129},[119,372,374],{"emptyLinePlaceholder":373},true,"\n",[119,376,377],{"class":121,"line":148},[119,378,379],{"class":125},"\u002F\u002F Check subscription status\n",[119,381,382,385,388,392,395,398,400,403,406],{"class":121,"line":173},[119,383,365],{"class":384},"sBMFI",[119,386,387],{"class":132},"::",[119,389,391],{"class":390},"s2Zo4","isSubscribed",[119,393,394],{"class":132},"($",[119,396,397],{"class":348},"commentable",[119,399,239],{"class":132},[119,401,402],{"class":132}," $",[119,404,405],{"class":348},"user",[119,407,408],{"class":132},");\n",[119,410,411],{"class":121,"line":188},[119,412,374],{"emptyLinePlaceholder":373},[119,414,416],{"class":121,"line":415},6,[119,417,418],{"class":125},"\u002F\u002F Subscribe\u002Funsubscribe\n",[119,420,422,424,426,429,431,433,435,437,439],{"class":121,"line":421},7,[119,423,365],{"class":384},[119,425,387],{"class":132},[119,427,428],{"class":390},"subscribe",[119,430,394],{"class":132},[119,432,397],{"class":348},[119,434,239],{"class":132},[119,436,402],{"class":132},[119,438,405],{"class":348},[119,440,408],{"class":132},[119,442,444,446,448,451,453,455,457,459,461],{"class":121,"line":443},8,[119,445,365],{"class":384},[119,447,387],{"class":132},[119,449,450],{"class":390},"unsubscribe",[119,452,394],{"class":132},[119,454,397],{"class":348},[119,456,239],{"class":132},[119,458,402],{"class":132},[119,460,405],{"class":348},[119,462,408],{"class":132},[119,464,466],{"class":121,"line":465},9,[119,467,374],{"emptyLinePlaceholder":373},[119,469,471],{"class":121,"line":470},10,[119,472,473],{"class":125},"\u002F\u002F Get all subscribers for a commentable\n",[119,475,477,480,483,486,489,491,494,496,498],{"class":121,"line":476},11,[119,478,479],{"class":132},"$",[119,481,482],{"class":348},"subscribers ",[119,484,485],{"class":132},"=",[119,487,488],{"class":384}," Subscription",[119,490,387],{"class":132},[119,492,493],{"class":390},"subscribersFor",[119,495,394],{"class":132},[119,497,397],{"class":348},[119,499,408],{"class":132},[81,501,503],{"id":502},"events","Events",[505,506,507,523],"table",{},[508,509,510],"thead",{},[511,512,513,517,520],"tr",{},[514,515,516],"th",{},"Event",[514,518,519],{},"Trigger",[514,521,522],{},"Broadcasts",[524,525,526,540,552,564,576],"tbody",{},[511,527,528,534,537],{},[529,530,531],"td",{},[116,532,533],{},"CommentCreated",[529,535,536],{},"New comment or reply",[529,538,539],{},"Yes",[511,541,542,547,550],{},[529,543,544],{},[116,545,546],{},"CommentUpdated",[529,548,549],{},"Comment edited",[529,551,539],{},[511,553,554,559,562],{},[529,555,556],{},[116,557,558],{},"CommentDeleted",[529,560,561],{},"Comment soft-deleted",[529,563,539],{},[511,565,566,571,574],{},[529,567,568],{},[116,569,570],{},"CommentReacted",[529,572,573],{},"Reaction added\u002Fremoved",[529,575,539],{},[511,577,578,583,586],{},[529,579,580],{},[116,581,582],{},"UserMentioned",[529,584,585],{},"User @mentioned",[529,587,588],{},"No",[81,590,592],{"id":591},"real-time-updates","Real-time Updates",[90,594,596],{"id":595},"broadcasting","Broadcasting",[86,598,599],{},"Enable broadcasting for instant updates across browser sessions:",[109,601,603],{"className":111,"code":602,"language":113,"meta":114,"style":114},"\u002F\u002F config\u002Fcomments.php\n'broadcasting' => [\n 'enabled' => true,\n 'channel_prefix' => 'comments',\n],\n",[116,604,605,609,621,633,654],{"__ignoreMap":114},[119,606,607],{"class":121,"line":122},[119,608,126],{"class":125},[119,610,611,613,615,617,619],{"class":121,"line":129},[119,612,133],{"class":132},[119,614,595],{"class":136},[119,616,133],{"class":132},[119,618,142],{"class":132},[119,620,145],{"class":132},[119,622,623,625,627,629,631],{"class":121,"line":148},[119,624,151],{"class":132},[119,626,178],{"class":136},[119,628,133],{"class":132},[119,630,142],{"class":132},[119,632,185],{"class":132},[119,634,635,637,640,642,644,646,649,651],{"class":121,"line":173},[119,636,151],{"class":132},[119,638,639],{"class":136},"channel_prefix",[119,641,133],{"class":132},[119,643,142],{"class":132},[119,645,242],{"class":132},[119,647,648],{"class":136},"comments",[119,650,133],{"class":132},[119,652,653],{"class":132},",\n",[119,655,656],{"class":121,"line":188},[119,657,170],{"class":132},[86,659,660,661],{},"Events are broadcast on private channels: ",[116,662,663],{},"{prefix}.{commentable_type}.{commentable_id}",[86,665,666],{},"This requires Laravel Echo and a broadcasting driver (Pusher, Ably, etc.) configured in your application.",[90,668,670],{"id":669},"polling-fallback","Polling Fallback",[86,672,673],{},"When broadcasting is disabled, the Livewire component polls for updates:",[109,675,677],{"className":111,"code":676,"language":113,"meta":114,"style":114},"'polling' => [\n 'interval' => '10s',\n],\n",[116,678,679,692,712],{"__ignoreMap":114},[119,680,681,683,686,688,690],{"class":121,"line":122},[119,682,133],{"class":132},[119,684,685],{"class":136},"polling",[119,687,133],{"class":132},[119,689,142],{"class":132},[119,691,145],{"class":132},[119,693,694,696,699,701,703,705,708,710],{"class":121,"line":129},[119,695,151],{"class":132},[119,697,698],{"class":136},"interval",[119,700,133],{"class":132},[119,702,142],{"class":132},[119,704,242],{"class":132},[119,706,707],{"class":136},"10s",[119,709,133],{"class":132},[119,711,653],{"class":132},[119,713,714],{"class":121,"line":148},[119,715,170],{"class":132},[86,717,718,719,722],{},"Set to ",[116,720,721],{},"null"," to disable polling entirely.",[81,724,726],{"id":725},"disabling-notifications","Disabling Notifications",[109,728,730],{"className":111,"code":729,"language":113,"meta":114,"style":114},"'notifications' => [\n 'enabled' => false,\n],\n",[116,731,732,744,757],{"__ignoreMap":114},[119,733,734,736,738,740,742],{"class":121,"line":122},[119,735,133],{"class":132},[119,737,137],{"class":136},[119,739,133],{"class":132},[119,741,142],{"class":132},[119,743,145],{"class":132},[119,745,746,748,750,752,754],{"class":121,"line":129},[119,747,151],{"class":132},[119,749,178],{"class":136},[119,751,133],{"class":132},[119,753,142],{"class":132},[119,755,756],{"class":132}," false,\n",[119,758,759],{"class":121,"line":148},[119,760,170],{"class":132},[86,762,763],{},"This disables all notification dispatching. Subscriptions and events still work, but no notifications are sent.",[765,766,767],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":114,"searchDepth":129,"depth":129,"links":769},[770,774,775,780,781,785],{"id":83,"depth":129,"text":84,"children":771},[772,773],{"id":92,"depth":148,"text":93},{"id":99,"depth":148,"text":100},{"id":106,"depth":129,"text":107},{"id":268,"depth":129,"text":269,"children":776},[777,778,779],{"id":275,"depth":148,"text":276},{"id":326,"depth":148,"text":327},{"id":333,"depth":148,"text":334},{"id":502,"depth":129,"text":503},{"id":591,"depth":129,"text":592,"children":782},[783,784],{"id":595,"depth":148,"text":596},{"id":669,"depth":148,"text":670},{"id":725,"depth":129,"text":726},"Comment notifications, subscriptions, and real-time updates.","md",null,{},{"icon":54},{"description":792,"title":51},"Configure comment notifications, subscriptions, broadcasting, and polling.","drotOcQFMBQs0KXJ02mt95uFAuJkVVeqmKiZga1ki1c",[795,797],{"title":46,"path":47,"stem":48,"description":796,"icon":49,"children":-1},"File uploads for comments.",{"title":56,"path":57,"stem":58,"description":798,"icon":59,"children":-1},"Tables, relationships, and indexes used by the Comments package.",1774619385139] \ No newline at end of file diff --git a/essentials/reactions.html b/essentials/reactions.html index 2d4204a..ce3b40e 100644 --- a/essentials/reactions.html +++ b/essentials/reactions.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Reactions - Comments
Comments Logo
1.x
Essentials

Reactions

Emoji reactions on comments.

Default Reactions

Six emoji reactions are available out of the box:

KeyEmojiLabel
thumbs_up:thumbsup:Like
heart❤️Love
celebrate🎉Celebrate
laugh😄Laugh
thinking🤔Thinking
sad😢Sad

How Reactions Work

  • Each user can add one reaction of each type per comment
  • Clicking the same reaction again removes it (toggle behavior)
  • The reaction summary shows which users reacted with each emoji
  • A CommentReacted event is dispatched with action: 'added' or 'removed'

Customizing Reactions

Override the emoji set in your config:

// config/comments.php
+}Reactions - Comments
Comments Logo
1.x
Essentials

Reactions

Emoji reactions on comments.

Default Reactions

Six emoji reactions are available out of the box:

KeyEmojiLabel
thumbs_up:thumbsup:Like
heart❤️Love
celebrate🎉Celebrate
laugh😄Laugh
thinking🤔Thinking
sad😢Sad

How Reactions Work

  • Each user can add one reaction of each type per comment
  • Clicking the same reaction again removes it (toggle behavior)
  • The reaction summary shows which users reacted with each emoji
  • A CommentReacted event is dispatched with action: 'added' or 'removed'

Customizing Reactions

Override the emoji set in your config:

// config/comments.php
 'reactions' => [
     'emoji_set' => [
         'thumbs_up' => "\u{1F44D}",
@@ -104,4 +104,4 @@
         'eyes' => "\u{1F440}",
     ],
 ],
-

Keys are stored in the database. If you change a key, existing reactions with the old key will no longer display.

Storage

Reactions are stored in the comment_reactions table with a unique constraint on (comment_id, commenter_id, commenter_type, reaction), ensuring one reaction of each type per user per comment.

Copyright © 2026
\ No newline at end of file +

Keys are stored in the database. If you change a key, existing reactions with the old key will no longer display.

Storage

Reactions are stored in the comment_reactions table with a unique constraint on (comment_id, commenter_id, commenter_type, reaction), ensuring one reaction of each type per user per comment.

Copyright © 2026
\ No newline at end of file diff --git a/essentials/reactions/_payload.json b/essentials/reactions/_payload.json index b1d7e89..d4e7bc6 100644 --- a/essentials/reactions/_payload.json +++ b/essentials/reactions/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":442},["ShallowReactive",2],{"navigation_docs":3,"-essentials-reactions":75,"-essentials-reactions-surround":437},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":41,"body":77,"description":429,"extension":430,"links":431,"meta":432,"navigation":433,"path":42,"seo":434,"stem":43,"__hash__":436},"docs\u002F2.essentials\u002F4.reactions.md",{"type":78,"value":79,"toc":423},"minimark",[80,85,89,191,195,222,226,229,401,404,408,419],[81,82,84],"h2",{"id":83},"default-reactions","Default Reactions",[86,87,88],"p",{},"Six emoji reactions are available out of the box:",[90,91,92,108],"table",{},[93,94,95],"thead",{},[96,97,98,102,105],"tr",{},[99,100,101],"th",{},"Key",[99,103,104],{},"Emoji",[99,106,107],{},"Label",[109,110,111,126,139,152,165,178],"tbody",{},[96,112,113,120,123],{},[114,115,116],"td",{},[117,118,119],"code",{},"thumbs_up",[114,121,122],{},":thumbsup:",[114,124,125],{},"Like",[96,127,128,133,136],{},[114,129,130],{},[117,131,132],{},"heart",[114,134,135],{},"❤️",[114,137,138],{},"Love",[96,140,141,146,149],{},[114,142,143],{},[117,144,145],{},"celebrate",[114,147,148],{},"🎉",[114,150,151],{},"Celebrate",[96,153,154,159,162],{},[114,155,156],{},[117,157,158],{},"laugh",[114,160,161],{},"😄",[114,163,164],{},"Laugh",[96,166,167,172,175],{},[114,168,169],{},[117,170,171],{},"thinking",[114,173,174],{},"🤔",[114,176,177],{},"Thinking",[96,179,180,185,188],{},[114,181,182],{},[117,183,184],{},"sad",[114,186,187],{},"😢",[114,189,190],{},"Sad",[81,192,194],{"id":193},"how-reactions-work","How Reactions Work",[196,197,198,202,205,208],"ul",{},[199,200,201],"li",{},"Each user can add one reaction of each type per comment",[199,203,204],{},"Clicking the same reaction again removes it (toggle behavior)",[199,206,207],{},"The reaction summary shows which users reacted with each emoji",[199,209,210,211,214,215,218,219],{},"A ",[117,212,213],{},"CommentReacted"," event is dispatched with ",[117,216,217],{},"action: 'added'"," or ",[117,220,221],{},"'removed'",[81,223,225],{"id":224},"customizing-reactions","Customizing Reactions",[86,227,228],{},"Override the emoji set in your config:",[230,231,236],"pre",{"className":232,"code":233,"language":234,"meta":235,"style":235},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F config\u002Fcomments.php\n'reactions' => [\n 'emoji_set' => [\n 'thumbs_up' => \"\\u{1F44D}\",\n 'thumbs_down' => \"\\u{1F44E}\",\n 'heart' => \"\\u{2764}\\u{FE0F}\",\n 'fire' => \"\\u{1F525}\",\n 'eyes' => \"\\u{1F440}\",\n ],\n],\n","php","",[117,237,238,247,266,281,306,327,347,368,389,395],{"__ignoreMap":235},[239,240,243],"span",{"class":241,"line":242},"line",1,[239,244,246],{"class":245},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[239,248,250,254,258,260,263],{"class":241,"line":249},2,[239,251,253],{"class":252},"sMK4o","'",[239,255,257],{"class":256},"sfazB","reactions",[239,259,253],{"class":252},[239,261,262],{"class":252}," =>",[239,264,265],{"class":252}," [\n",[239,267,269,272,275,277,279],{"class":241,"line":268},3,[239,270,271],{"class":252}," '",[239,273,274],{"class":256},"emoji_set",[239,276,253],{"class":252},[239,278,262],{"class":252},[239,280,265],{"class":252},[239,282,284,287,289,291,293,296,300,303],{"class":241,"line":283},4,[239,285,286],{"class":252}," '",[239,288,119],{"class":256},[239,290,253],{"class":252},[239,292,262],{"class":252},[239,294,295],{"class":252}," \"",[239,297,299],{"class":298},"sTEyZ","\\u{1F44D}",[239,301,302],{"class":252},"\"",[239,304,305],{"class":252},",\n",[239,307,309,311,314,316,318,320,323,325],{"class":241,"line":308},5,[239,310,286],{"class":252},[239,312,313],{"class":256},"thumbs_down",[239,315,253],{"class":252},[239,317,262],{"class":252},[239,319,295],{"class":252},[239,321,322],{"class":298},"\\u{1F44E}",[239,324,302],{"class":252},[239,326,305],{"class":252},[239,328,330,332,334,336,338,340,343,345],{"class":241,"line":329},6,[239,331,286],{"class":252},[239,333,132],{"class":256},[239,335,253],{"class":252},[239,337,262],{"class":252},[239,339,295],{"class":252},[239,341,342],{"class":298},"\\u{2764}\\u{FE0F}",[239,344,302],{"class":252},[239,346,305],{"class":252},[239,348,350,352,355,357,359,361,364,366],{"class":241,"line":349},7,[239,351,286],{"class":252},[239,353,354],{"class":256},"fire",[239,356,253],{"class":252},[239,358,262],{"class":252},[239,360,295],{"class":252},[239,362,363],{"class":298},"\\u{1F525}",[239,365,302],{"class":252},[239,367,305],{"class":252},[239,369,371,373,376,378,380,382,385,387],{"class":241,"line":370},8,[239,372,286],{"class":252},[239,374,375],{"class":256},"eyes",[239,377,253],{"class":252},[239,379,262],{"class":252},[239,381,295],{"class":252},[239,383,384],{"class":298},"\\u{1F440}",[239,386,302],{"class":252},[239,388,305],{"class":252},[239,390,392],{"class":241,"line":391},9,[239,393,394],{"class":252}," ],\n",[239,396,398],{"class":241,"line":397},10,[239,399,400],{"class":252},"],\n",[86,402,403],{},"Keys are stored in the database. If you change a key, existing reactions with the old key will no longer display.",[81,405,407],{"id":406},"storage","Storage",[86,409,410,411,414,415,418],{},"Reactions are stored in the ",[117,412,413],{},"comment_reactions"," table with a unique constraint on ",[117,416,417],{},"(comment_id, commenter_id, commenter_type, reaction)",", ensuring one reaction of each type per user per comment.",[420,421,422],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":235,"searchDepth":249,"depth":249,"links":424},[425,426,427,428],{"id":83,"depth":249,"text":84},{"id":193,"depth":249,"text":194},{"id":224,"depth":249,"text":225},{"id":406,"depth":249,"text":407},"Emoji reactions on comments.","md",null,{},{"icon":44},{"description":435,"title":41},"Configure emoji reactions for comments.","5mi_HoegWMsrrG2xuLdYPS1DXL37zif9KsBLjciCtN0",[438,440],{"title":36,"path":37,"stem":38,"description":439,"icon":39,"children":-1},"User @mentions with autocomplete and notification support.",{"title":46,"path":47,"stem":48,"description":441,"icon":49,"children":-1},"File uploads for comments.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":442},["ShallowReactive",2],{"navigation_docs":3,"-essentials-reactions":75,"-essentials-reactions-surround":437},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":41,"body":77,"description":429,"extension":430,"links":431,"meta":432,"navigation":433,"path":42,"seo":434,"stem":43,"__hash__":436},"docs\u002F2.essentials\u002F4.reactions.md",{"type":78,"value":79,"toc":423},"minimark",[80,85,89,191,195,222,226,229,401,404,408,419],[81,82,84],"h2",{"id":83},"default-reactions","Default Reactions",[86,87,88],"p",{},"Six emoji reactions are available out of the box:",[90,91,92,108],"table",{},[93,94,95],"thead",{},[96,97,98,102,105],"tr",{},[99,100,101],"th",{},"Key",[99,103,104],{},"Emoji",[99,106,107],{},"Label",[109,110,111,126,139,152,165,178],"tbody",{},[96,112,113,120,123],{},[114,115,116],"td",{},[117,118,119],"code",{},"thumbs_up",[114,121,122],{},":thumbsup:",[114,124,125],{},"Like",[96,127,128,133,136],{},[114,129,130],{},[117,131,132],{},"heart",[114,134,135],{},"❤️",[114,137,138],{},"Love",[96,140,141,146,149],{},[114,142,143],{},[117,144,145],{},"celebrate",[114,147,148],{},"🎉",[114,150,151],{},"Celebrate",[96,153,154,159,162],{},[114,155,156],{},[117,157,158],{},"laugh",[114,160,161],{},"😄",[114,163,164],{},"Laugh",[96,166,167,172,175],{},[114,168,169],{},[117,170,171],{},"thinking",[114,173,174],{},"🤔",[114,176,177],{},"Thinking",[96,179,180,185,188],{},[114,181,182],{},[117,183,184],{},"sad",[114,186,187],{},"😢",[114,189,190],{},"Sad",[81,192,194],{"id":193},"how-reactions-work","How Reactions Work",[196,197,198,202,205,208],"ul",{},[199,200,201],"li",{},"Each user can add one reaction of each type per comment",[199,203,204],{},"Clicking the same reaction again removes it (toggle behavior)",[199,206,207],{},"The reaction summary shows which users reacted with each emoji",[199,209,210,211,214,215,218,219],{},"A ",[117,212,213],{},"CommentReacted"," event is dispatched with ",[117,216,217],{},"action: 'added'"," or ",[117,220,221],{},"'removed'",[81,223,225],{"id":224},"customizing-reactions","Customizing Reactions",[86,227,228],{},"Override the emoji set in your config:",[230,231,236],"pre",{"className":232,"code":233,"language":234,"meta":235,"style":235},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F config\u002Fcomments.php\n'reactions' => [\n 'emoji_set' => [\n 'thumbs_up' => \"\\u{1F44D}\",\n 'thumbs_down' => \"\\u{1F44E}\",\n 'heart' => \"\\u{2764}\\u{FE0F}\",\n 'fire' => \"\\u{1F525}\",\n 'eyes' => \"\\u{1F440}\",\n ],\n],\n","php","",[117,237,238,247,266,281,306,327,347,368,389,395],{"__ignoreMap":235},[239,240,243],"span",{"class":241,"line":242},"line",1,[239,244,246],{"class":245},"sHwdD","\u002F\u002F config\u002Fcomments.php\n",[239,248,250,254,258,260,263],{"class":241,"line":249},2,[239,251,253],{"class":252},"sMK4o","'",[239,255,257],{"class":256},"sfazB","reactions",[239,259,253],{"class":252},[239,261,262],{"class":252}," =>",[239,264,265],{"class":252}," [\n",[239,267,269,272,275,277,279],{"class":241,"line":268},3,[239,270,271],{"class":252}," '",[239,273,274],{"class":256},"emoji_set",[239,276,253],{"class":252},[239,278,262],{"class":252},[239,280,265],{"class":252},[239,282,284,287,289,291,293,296,300,303],{"class":241,"line":283},4,[239,285,286],{"class":252}," '",[239,288,119],{"class":256},[239,290,253],{"class":252},[239,292,262],{"class":252},[239,294,295],{"class":252}," \"",[239,297,299],{"class":298},"sTEyZ","\\u{1F44D}",[239,301,302],{"class":252},"\"",[239,304,305],{"class":252},",\n",[239,307,309,311,314,316,318,320,323,325],{"class":241,"line":308},5,[239,310,286],{"class":252},[239,312,313],{"class":256},"thumbs_down",[239,315,253],{"class":252},[239,317,262],{"class":252},[239,319,295],{"class":252},[239,321,322],{"class":298},"\\u{1F44E}",[239,324,302],{"class":252},[239,326,305],{"class":252},[239,328,330,332,334,336,338,340,343,345],{"class":241,"line":329},6,[239,331,286],{"class":252},[239,333,132],{"class":256},[239,335,253],{"class":252},[239,337,262],{"class":252},[239,339,295],{"class":252},[239,341,342],{"class":298},"\\u{2764}\\u{FE0F}",[239,344,302],{"class":252},[239,346,305],{"class":252},[239,348,350,352,355,357,359,361,364,366],{"class":241,"line":349},7,[239,351,286],{"class":252},[239,353,354],{"class":256},"fire",[239,356,253],{"class":252},[239,358,262],{"class":252},[239,360,295],{"class":252},[239,362,363],{"class":298},"\\u{1F525}",[239,365,302],{"class":252},[239,367,305],{"class":252},[239,369,371,373,376,378,380,382,385,387],{"class":241,"line":370},8,[239,372,286],{"class":252},[239,374,375],{"class":256},"eyes",[239,377,253],{"class":252},[239,379,262],{"class":252},[239,381,295],{"class":252},[239,383,384],{"class":298},"\\u{1F440}",[239,386,302],{"class":252},[239,388,305],{"class":252},[239,390,392],{"class":241,"line":391},9,[239,393,394],{"class":252}," ],\n",[239,396,398],{"class":241,"line":397},10,[239,399,400],{"class":252},"],\n",[86,402,403],{},"Keys are stored in the database. If you change a key, existing reactions with the old key will no longer display.",[81,405,407],{"id":406},"storage","Storage",[86,409,410,411,414,415,418],{},"Reactions are stored in the ",[117,412,413],{},"comment_reactions"," table with a unique constraint on ",[117,416,417],{},"(comment_id, commenter_id, commenter_type, reaction)",", ensuring one reaction of each type per user per comment.",[420,421,422],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":235,"searchDepth":249,"depth":249,"links":424},[425,426,427,428],{"id":83,"depth":249,"text":84},{"id":193,"depth":249,"text":194},{"id":224,"depth":249,"text":225},{"id":406,"depth":249,"text":407},"Emoji reactions on comments.","md",null,{},{"icon":44},{"description":435,"title":41},"Configure emoji reactions for comments.","5mi_HoegWMsrrG2xuLdYPS1DXL37zif9KsBLjciCtN0",[438,440],{"title":36,"path":37,"stem":38,"description":439,"icon":39,"children":-1},"User @mentions with autocomplete and notification support.",{"title":46,"path":47,"stem":48,"description":441,"icon":49,"children":-1},"File uploads for comments.",1774619385139] \ No newline at end of file diff --git a/getting-started/installation.html b/getting-started/installation.html index b7bfe50..e5a47e4 100644 --- a/getting-started/installation.html +++ b/getting-started/installation.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Installation - Comments
Comments Logo
1.x
Getting Started

Installation

Get started with Comments in minutes.

Requirements

  • PHP: 8.2+
  • Laravel: 12+
  • Filament: 4.x / 5.x
  • Livewire: 3.5+ / 4.x

Quick Setup

Install Package

Terminal
composer require relaticle/comments
+}Installation - Comments
Comments Logo
1.x
Getting Started

Installation

Get started with Comments in minutes.

Requirements

  • PHP: 8.2+
  • Laravel: 12+
  • Filament: 4.x / 5.x
  • Livewire: 3.5+ / 4.x

Quick Setup

Install Package

Terminal
composer require relaticle/comments
 

Publish and Run Migrations

Terminal
php artisan vendor:publish --tag=comments-migrations
 php artisan migrate
 

Include CSS Assets

Prerequisite: You need a custom Filament theme to include the Comments styles.

If you haven't set up a custom theme for Filament, follow the Filament Docs first.

Add the plugin's views to your theme CSS file:

resources/css/filament/admin/theme.css
@source "../../../../vendor/relaticle/comments/resources/views/**/*.blade.php";
@@ -129,4 +129,4 @@
         CommentsAction::make(),
     ];
 }
-

Done! Visit your Filament panel to see comments in action.

Optional Configuration

CommandAction
php artisan vendor:publish --tag=comments-configPublish the configuration file
php artisan vendor:publish --tag=comments-viewsPublish the Blade views for customization
php artisan vendor:publish --tag=comments-translationsPublish the translation files
Copyright © 2026
\ No newline at end of file +

Done! Visit your Filament panel to see comments in action.

Optional Configuration

CommandAction
php artisan vendor:publish --tag=comments-configPublish the configuration file
php artisan vendor:publish --tag=comments-viewsPublish the Blade views for customization
php artisan vendor:publish --tag=comments-translationsPublish the translation files
Copyright © 2026
\ No newline at end of file diff --git a/getting-started/installation/_payload.json b/getting-started/installation/_payload.json index a2625bc..550b294 100644 --- a/getting-started/installation/_payload.json +++ b/getting-started/installation/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":731},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-installation":75,"-getting-started-installation-surround":728},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":11,"body":77,"description":719,"extension":720,"links":721,"meta":722,"navigation":723,"path":12,"seo":724,"stem":13,"__hash__":727},"docs\u002F1.getting-started\u002F1.installation.md",{"type":78,"value":79,"toc":707},"minimark",[80,85,114,118,643,649,653,703],[81,82,84],"h2",{"id":83},"requirements","Requirements",[86,87,88,96,102,108],"ul",{},[89,90,91,95],"li",{},[92,93,94],"strong",{},"PHP:"," 8.2+",[89,97,98,101],{},[92,99,100],{},"Laravel:"," 12+",[89,103,104,107],{},[92,105,106],{},"Filament:"," 4.x \u002F 5.x",[89,109,110,113],{},[92,111,112],{},"Livewire:"," 3.5+ \u002F 4.x",[81,115,117],{"id":116},"quick-setup","Quick Setup",[119,120,121,126,153,157,186,190,194,207,210,232,236,359,363,370,461,467,552,556,559],"steps",{},[122,123,125],"h3",{"id":124},"install-package","Install Package",[127,128,134],"pre",{"className":129,"code":130,"filename":131,"language":132,"meta":133,"style":133},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","composer require relaticle\u002Fcomments\n","Terminal","bash","",[135,136,137],"code",{"__ignoreMap":133},[138,139,142,146,150],"span",{"class":140,"line":141},"line",1,[138,143,145],{"class":144},"sBMFI","composer",[138,147,149],{"class":148},"sfazB"," require",[138,151,152],{"class":148}," relaticle\u002Fcomments\n",[122,154,156],{"id":155},"publish-and-run-migrations","Publish and Run Migrations",[127,158,160],{"className":129,"code":159,"filename":131,"language":132,"meta":133,"style":133},"php artisan vendor:publish --tag=comments-migrations\nphp artisan migrate\n",[135,161,162,176],{"__ignoreMap":133},[138,163,164,167,170,173],{"class":140,"line":141},[138,165,166],{"class":144},"php",[138,168,169],{"class":148}," artisan",[138,171,172],{"class":148}," vendor:publish",[138,174,175],{"class":148}," --tag=comments-migrations\n",[138,177,179,181,183],{"class":140,"line":178},2,[138,180,166],{"class":144},[138,182,169],{"class":148},[138,184,185],{"class":148}," migrate\n",[122,187,189],{"id":188},"include-css-assets","Include CSS Assets",[191,192,193],"p",{},"Prerequisite: You need a custom Filament theme to include the Comments styles.",[195,196,198,199,206],"alert",{"type":197},"warning","If you haven't set up a custom theme for Filament, follow the ",[200,201,205],"a",{"href":202,"rel":203},"https:\u002F\u002Ffilamentphp.com\u002Fdocs\u002F5.x\u002Fstyling\u002Foverview#creating-a-custom-theme",[204],"nofollow","Filament Docs"," first.",[191,208,209],{},"Add the plugin's views to your theme CSS file:",[127,211,216],{"className":212,"code":213,"filename":214,"language":215,"meta":133,"style":133},"language-css shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","@source \"..\u002F..\u002F..\u002F..\u002Fvendor\u002Frelaticle\u002Fcomments\u002Fresources\u002Fviews\u002F**\u002F*.blade.php\";\n","resources\u002Fcss\u002Ffilament\u002Fadmin\u002Ftheme.css","css",[135,217,218],{"__ignoreMap":133},[138,219,220,224,228],{"class":140,"line":141},[138,221,223],{"class":222},"s7zQu","@source",[138,225,227],{"class":226},"sTEyZ"," \"..\u002F..\u002F..\u002F..\u002Fvendor\u002Frelaticle\u002Fcomments\u002Fresources\u002Fviews\u002F**\u002F*.blade.php\"",[138,229,231],{"class":230},"sMK4o",";\n",[122,233,235],{"id":234},"register-the-plugin","Register the Plugin",[127,237,241],{"className":238,"code":239,"filename":240,"language":166,"meta":133,"style":133},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use Relaticle\\Comments\\CommentsPlugin;\n\npublic function panel(Panel $panel): Panel\n{\n return $panel\n ->plugins([\n CommentsPlugin::make(),\n ]);\n}\n","AdminPanelProvider.php",[135,242,243,265,271,303,309,320,332,347,353],{"__ignoreMap":133},[138,244,245,249,252,255,258,260,263],{"class":140,"line":141},[138,246,248],{"class":247},"sbssI","use",[138,250,251],{"class":226}," Relaticle",[138,253,254],{"class":230},"\\",[138,256,257],{"class":226},"Comments",[138,259,254],{"class":230},[138,261,262],{"class":226},"CommentsPlugin",[138,264,231],{"class":230},[138,266,267],{"class":140,"line":178},[138,268,270],{"emptyLinePlaceholder":269},true,"\n",[138,272,274,278,281,285,288,291,294,297,300],{"class":140,"line":273},3,[138,275,277],{"class":276},"spNyl","public",[138,279,280],{"class":276}," function",[138,282,284],{"class":283},"s2Zo4"," panel",[138,286,287],{"class":230},"(",[138,289,290],{"class":144},"Panel",[138,292,293],{"class":230}," $",[138,295,296],{"class":226},"panel",[138,298,299],{"class":230},"):",[138,301,302],{"class":144}," Panel\n",[138,304,306],{"class":140,"line":305},4,[138,307,308],{"class":230},"{\n",[138,310,312,315,317],{"class":140,"line":311},5,[138,313,314],{"class":222}," return",[138,316,293],{"class":230},[138,318,319],{"class":226},"panel\n",[138,321,323,326,329],{"class":140,"line":322},6,[138,324,325],{"class":230}," ->",[138,327,328],{"class":283},"plugins",[138,330,331],{"class":230},"([\n",[138,333,335,338,341,344],{"class":140,"line":334},7,[138,336,337],{"class":144}," CommentsPlugin",[138,339,340],{"class":230},"::",[138,342,343],{"class":283},"make",[138,345,346],{"class":230},"(),\n",[138,348,350],{"class":140,"line":349},8,[138,351,352],{"class":230}," ]);\n",[138,354,356],{"class":140,"line":355},9,[138,357,358],{"class":230},"}\n",[122,360,362],{"id":361},"set-up-your-models","Set Up Your Models",[191,364,365,366,369],{},"Add the ",[135,367,368],{},"HasComments"," trait to any model you want to comment on:",[127,371,374],{"className":238,"code":372,"filename":373,"language":166,"meta":133,"style":133},"use Relaticle\\Comments\\Concerns\\HasComments;\nuse Relaticle\\Comments\\Contracts\\Commentable;\n\nclass Project extends Model implements Commentable\n{\n use HasComments;\n}\n","app\u002FModels\u002FProject.php",[135,375,376,397,419,423,443,447,457],{"__ignoreMap":133},[138,377,378,380,382,384,386,388,391,393,395],{"class":140,"line":141},[138,379,248],{"class":247},[138,381,251],{"class":226},[138,383,254],{"class":230},[138,385,257],{"class":226},[138,387,254],{"class":230},[138,389,390],{"class":226},"Concerns",[138,392,254],{"class":230},[138,394,368],{"class":226},[138,396,231],{"class":230},[138,398,399,401,403,405,407,409,412,414,417],{"class":140,"line":178},[138,400,248],{"class":247},[138,402,251],{"class":226},[138,404,254],{"class":230},[138,406,257],{"class":226},[138,408,254],{"class":230},[138,410,411],{"class":226},"Contracts",[138,413,254],{"class":230},[138,415,416],{"class":226},"Commentable",[138,418,231],{"class":230},[138,420,421],{"class":140,"line":273},[138,422,270],{"emptyLinePlaceholder":269},[138,424,425,428,431,434,437,440],{"class":140,"line":305},[138,426,427],{"class":276},"class",[138,429,430],{"class":144}," Project",[138,432,433],{"class":276}," extends",[138,435,436],{"class":144}," Model",[138,438,439],{"class":276}," implements",[138,441,442],{"class":144}," Commentable\n",[138,444,445],{"class":140,"line":311},[138,446,308],{"class":230},[138,448,449,452,455],{"class":140,"line":322},[138,450,451],{"class":247}," use",[138,453,454],{"class":226}," HasComments",[138,456,231],{"class":230},[138,458,459],{"class":140,"line":334},[138,460,358],{"class":230},[191,462,365,463,466],{},[135,464,465],{},"CanComment"," trait to your User model:",[127,468,471],{"className":238,"code":469,"filename":470,"language":166,"meta":133,"style":133},"use Relaticle\\Comments\\Concerns\\CanComment;\nuse Relaticle\\Comments\\Contracts\\Commentator;\n\nclass User extends Authenticatable implements Commentator\n{\n use CanComment;\n}\n","app\u002FModels\u002FUser.php",[135,472,473,493,514,518,535,539,548],{"__ignoreMap":133},[138,474,475,477,479,481,483,485,487,489,491],{"class":140,"line":141},[138,476,248],{"class":247},[138,478,251],{"class":226},[138,480,254],{"class":230},[138,482,257],{"class":226},[138,484,254],{"class":230},[138,486,390],{"class":226},[138,488,254],{"class":230},[138,490,465],{"class":226},[138,492,231],{"class":230},[138,494,495,497,499,501,503,505,507,509,512],{"class":140,"line":178},[138,496,248],{"class":247},[138,498,251],{"class":226},[138,500,254],{"class":230},[138,502,257],{"class":226},[138,504,254],{"class":230},[138,506,411],{"class":226},[138,508,254],{"class":230},[138,510,511],{"class":226},"Commentator",[138,513,231],{"class":230},[138,515,516],{"class":140,"line":273},[138,517,270],{"emptyLinePlaceholder":269},[138,519,520,522,525,527,530,532],{"class":140,"line":305},[138,521,427],{"class":276},[138,523,524],{"class":144}," User",[138,526,433],{"class":276},[138,528,529],{"class":144}," Authenticatable",[138,531,439],{"class":276},[138,533,534],{"class":144}," Commentator\n",[138,536,537],{"class":140,"line":311},[138,538,308],{"class":230},[138,540,541,543,546],{"class":140,"line":322},[138,542,451],{"class":247},[138,544,545],{"class":226}," CanComment",[138,547,231],{"class":230},[138,549,550],{"class":140,"line":334},[138,551,358],{"class":230},[122,553,555],{"id":554},"add-to-your-resources","Add to Your Resources",[191,557,558],{},"Use the slide-over action on view or edit pages:",[127,560,563],{"className":238,"code":561,"filename":562,"language":166,"meta":133,"style":133},"use Relaticle\\Comments\\Filament\\Actions\\CommentsAction;\n\nprotected function getHeaderActions(): array\n{\n return [\n CommentsAction::make(),\n ];\n}\n","app\u002FFilament\u002FResources\u002FProjectResource\u002FPages\u002FViewProject.php",[135,564,565,592,596,612,616,623,634,639],{"__ignoreMap":133},[138,566,567,569,571,573,575,577,580,582,585,587,590],{"class":140,"line":141},[138,568,248],{"class":247},[138,570,251],{"class":226},[138,572,254],{"class":230},[138,574,257],{"class":226},[138,576,254],{"class":230},[138,578,579],{"class":226},"Filament",[138,581,254],{"class":230},[138,583,584],{"class":226},"Actions",[138,586,254],{"class":230},[138,588,589],{"class":226},"CommentsAction",[138,591,231],{"class":230},[138,593,594],{"class":140,"line":178},[138,595,270],{"emptyLinePlaceholder":269},[138,597,598,601,603,606,609],{"class":140,"line":273},[138,599,600],{"class":276},"protected",[138,602,280],{"class":276},[138,604,605],{"class":283}," getHeaderActions",[138,607,608],{"class":230},"():",[138,610,611],{"class":247}," array\n",[138,613,614],{"class":140,"line":305},[138,615,308],{"class":230},[138,617,618,620],{"class":140,"line":311},[138,619,314],{"class":222},[138,621,622],{"class":230}," [\n",[138,624,625,628,630,632],{"class":140,"line":322},[138,626,627],{"class":144}," CommentsAction",[138,629,340],{"class":230},[138,631,343],{"class":283},[138,633,346],{"class":230},[138,635,636],{"class":140,"line":334},[138,637,638],{"class":230}," ];\n",[138,640,641],{"class":140,"line":349},[138,642,358],{"class":230},[191,644,645,648],{},[92,646,647],{},"Done!"," Visit your Filament panel to see comments in action.",[81,650,652],{"id":651},"optional-configuration","Optional Configuration",[654,655,656,669],"table",{},[657,658,659],"thead",{},[660,661,662,666],"tr",{},[663,664,665],"th",{},"Command",[663,667,668],{},"Action",[670,671,672,683,693],"tbody",{},[660,673,674,680],{},[675,676,677],"td",{},[135,678,679],{},"php artisan vendor:publish --tag=comments-config",[675,681,682],{},"Publish the configuration file",[660,684,685,690],{},[675,686,687],{},[135,688,689],{},"php artisan vendor:publish --tag=comments-views",[675,691,692],{},"Publish the Blade views for customization",[660,694,695,700],{},[675,696,697],{},[135,698,699],{},"php artisan vendor:publish --tag=comments-translations",[675,701,702],{},"Publish the translation files",[704,705,706],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":133,"searchDepth":178,"depth":178,"links":708},[709,710,718],{"id":83,"depth":178,"text":84},{"id":116,"depth":178,"text":117,"children":711},[712,713,714,715,716,717],{"id":124,"depth":273,"text":125},{"id":155,"depth":273,"text":156},{"id":188,"depth":273,"text":189},{"id":234,"depth":273,"text":235},{"id":361,"depth":273,"text":362},{"id":554,"depth":273,"text":555},{"id":651,"depth":178,"text":652},"Get started with Comments in minutes.","md",null,{},{"icon":14},{"description":725,"ogImage":726,"title":11},"Install Comments and add commenting to your Filament resources.","\u002Fpreview.png","hts0PR3sg3h83C0GgqSeAnWX6Cg_8vAocaUiDee7xtg",[721,729],{"title":16,"path":17,"stem":18,"description":730,"icon":19,"children":-1},"Upgrade guide for Comments.",1774613434255] \ No newline at end of file +[{"data":1,"prerenderedAt":731},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-installation":75,"-getting-started-installation-surround":728},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":11,"body":77,"description":719,"extension":720,"links":721,"meta":722,"navigation":723,"path":12,"seo":724,"stem":13,"__hash__":727},"docs\u002F1.getting-started\u002F1.installation.md",{"type":78,"value":79,"toc":707},"minimark",[80,85,114,118,643,649,653,703],[81,82,84],"h2",{"id":83},"requirements","Requirements",[86,87,88,96,102,108],"ul",{},[89,90,91,95],"li",{},[92,93,94],"strong",{},"PHP:"," 8.2+",[89,97,98,101],{},[92,99,100],{},"Laravel:"," 12+",[89,103,104,107],{},[92,105,106],{},"Filament:"," 4.x \u002F 5.x",[89,109,110,113],{},[92,111,112],{},"Livewire:"," 3.5+ \u002F 4.x",[81,115,117],{"id":116},"quick-setup","Quick Setup",[119,120,121,126,153,157,186,190,194,207,210,232,236,359,363,370,461,467,552,556,559],"steps",{},[122,123,125],"h3",{"id":124},"install-package","Install Package",[127,128,134],"pre",{"className":129,"code":130,"filename":131,"language":132,"meta":133,"style":133},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","composer require relaticle\u002Fcomments\n","Terminal","bash","",[135,136,137],"code",{"__ignoreMap":133},[138,139,142,146,150],"span",{"class":140,"line":141},"line",1,[138,143,145],{"class":144},"sBMFI","composer",[138,147,149],{"class":148},"sfazB"," require",[138,151,152],{"class":148}," relaticle\u002Fcomments\n",[122,154,156],{"id":155},"publish-and-run-migrations","Publish and Run Migrations",[127,158,160],{"className":129,"code":159,"filename":131,"language":132,"meta":133,"style":133},"php artisan vendor:publish --tag=comments-migrations\nphp artisan migrate\n",[135,161,162,176],{"__ignoreMap":133},[138,163,164,167,170,173],{"class":140,"line":141},[138,165,166],{"class":144},"php",[138,168,169],{"class":148}," artisan",[138,171,172],{"class":148}," vendor:publish",[138,174,175],{"class":148}," --tag=comments-migrations\n",[138,177,179,181,183],{"class":140,"line":178},2,[138,180,166],{"class":144},[138,182,169],{"class":148},[138,184,185],{"class":148}," migrate\n",[122,187,189],{"id":188},"include-css-assets","Include CSS Assets",[191,192,193],"p",{},"Prerequisite: You need a custom Filament theme to include the Comments styles.",[195,196,198,199,206],"alert",{"type":197},"warning","If you haven't set up a custom theme for Filament, follow the ",[200,201,205],"a",{"href":202,"rel":203},"https:\u002F\u002Ffilamentphp.com\u002Fdocs\u002F5.x\u002Fstyling\u002Foverview#creating-a-custom-theme",[204],"nofollow","Filament Docs"," first.",[191,208,209],{},"Add the plugin's views to your theme CSS file:",[127,211,216],{"className":212,"code":213,"filename":214,"language":215,"meta":133,"style":133},"language-css shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","@source \"..\u002F..\u002F..\u002F..\u002Fvendor\u002Frelaticle\u002Fcomments\u002Fresources\u002Fviews\u002F**\u002F*.blade.php\";\n","resources\u002Fcss\u002Ffilament\u002Fadmin\u002Ftheme.css","css",[135,217,218],{"__ignoreMap":133},[138,219,220,224,228],{"class":140,"line":141},[138,221,223],{"class":222},"s7zQu","@source",[138,225,227],{"class":226},"sTEyZ"," \"..\u002F..\u002F..\u002F..\u002Fvendor\u002Frelaticle\u002Fcomments\u002Fresources\u002Fviews\u002F**\u002F*.blade.php\"",[138,229,231],{"class":230},"sMK4o",";\n",[122,233,235],{"id":234},"register-the-plugin","Register the Plugin",[127,237,241],{"className":238,"code":239,"filename":240,"language":166,"meta":133,"style":133},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use Relaticle\\Comments\\CommentsPlugin;\n\npublic function panel(Panel $panel): Panel\n{\n return $panel\n ->plugins([\n CommentsPlugin::make(),\n ]);\n}\n","AdminPanelProvider.php",[135,242,243,265,271,303,309,320,332,347,353],{"__ignoreMap":133},[138,244,245,249,252,255,258,260,263],{"class":140,"line":141},[138,246,248],{"class":247},"sbssI","use",[138,250,251],{"class":226}," Relaticle",[138,253,254],{"class":230},"\\",[138,256,257],{"class":226},"Comments",[138,259,254],{"class":230},[138,261,262],{"class":226},"CommentsPlugin",[138,264,231],{"class":230},[138,266,267],{"class":140,"line":178},[138,268,270],{"emptyLinePlaceholder":269},true,"\n",[138,272,274,278,281,285,288,291,294,297,300],{"class":140,"line":273},3,[138,275,277],{"class":276},"spNyl","public",[138,279,280],{"class":276}," function",[138,282,284],{"class":283},"s2Zo4"," panel",[138,286,287],{"class":230},"(",[138,289,290],{"class":144},"Panel",[138,292,293],{"class":230}," $",[138,295,296],{"class":226},"panel",[138,298,299],{"class":230},"):",[138,301,302],{"class":144}," Panel\n",[138,304,306],{"class":140,"line":305},4,[138,307,308],{"class":230},"{\n",[138,310,312,315,317],{"class":140,"line":311},5,[138,313,314],{"class":222}," return",[138,316,293],{"class":230},[138,318,319],{"class":226},"panel\n",[138,321,323,326,329],{"class":140,"line":322},6,[138,324,325],{"class":230}," ->",[138,327,328],{"class":283},"plugins",[138,330,331],{"class":230},"([\n",[138,333,335,338,341,344],{"class":140,"line":334},7,[138,336,337],{"class":144}," CommentsPlugin",[138,339,340],{"class":230},"::",[138,342,343],{"class":283},"make",[138,345,346],{"class":230},"(),\n",[138,348,350],{"class":140,"line":349},8,[138,351,352],{"class":230}," ]);\n",[138,354,356],{"class":140,"line":355},9,[138,357,358],{"class":230},"}\n",[122,360,362],{"id":361},"set-up-your-models","Set Up Your Models",[191,364,365,366,369],{},"Add the ",[135,367,368],{},"HasComments"," trait to any model you want to comment on:",[127,371,374],{"className":238,"code":372,"filename":373,"language":166,"meta":133,"style":133},"use Relaticle\\Comments\\Concerns\\HasComments;\nuse Relaticle\\Comments\\Contracts\\Commentable;\n\nclass Project extends Model implements Commentable\n{\n use HasComments;\n}\n","app\u002FModels\u002FProject.php",[135,375,376,397,419,423,443,447,457],{"__ignoreMap":133},[138,377,378,380,382,384,386,388,391,393,395],{"class":140,"line":141},[138,379,248],{"class":247},[138,381,251],{"class":226},[138,383,254],{"class":230},[138,385,257],{"class":226},[138,387,254],{"class":230},[138,389,390],{"class":226},"Concerns",[138,392,254],{"class":230},[138,394,368],{"class":226},[138,396,231],{"class":230},[138,398,399,401,403,405,407,409,412,414,417],{"class":140,"line":178},[138,400,248],{"class":247},[138,402,251],{"class":226},[138,404,254],{"class":230},[138,406,257],{"class":226},[138,408,254],{"class":230},[138,410,411],{"class":226},"Contracts",[138,413,254],{"class":230},[138,415,416],{"class":226},"Commentable",[138,418,231],{"class":230},[138,420,421],{"class":140,"line":273},[138,422,270],{"emptyLinePlaceholder":269},[138,424,425,428,431,434,437,440],{"class":140,"line":305},[138,426,427],{"class":276},"class",[138,429,430],{"class":144}," Project",[138,432,433],{"class":276}," extends",[138,435,436],{"class":144}," Model",[138,438,439],{"class":276}," implements",[138,441,442],{"class":144}," Commentable\n",[138,444,445],{"class":140,"line":311},[138,446,308],{"class":230},[138,448,449,452,455],{"class":140,"line":322},[138,450,451],{"class":247}," use",[138,453,454],{"class":226}," HasComments",[138,456,231],{"class":230},[138,458,459],{"class":140,"line":334},[138,460,358],{"class":230},[191,462,365,463,466],{},[135,464,465],{},"CanComment"," trait to your User model:",[127,468,471],{"className":238,"code":469,"filename":470,"language":166,"meta":133,"style":133},"use Relaticle\\Comments\\Concerns\\CanComment;\nuse Relaticle\\Comments\\Contracts\\Commentator;\n\nclass User extends Authenticatable implements Commentator\n{\n use CanComment;\n}\n","app\u002FModels\u002FUser.php",[135,472,473,493,514,518,535,539,548],{"__ignoreMap":133},[138,474,475,477,479,481,483,485,487,489,491],{"class":140,"line":141},[138,476,248],{"class":247},[138,478,251],{"class":226},[138,480,254],{"class":230},[138,482,257],{"class":226},[138,484,254],{"class":230},[138,486,390],{"class":226},[138,488,254],{"class":230},[138,490,465],{"class":226},[138,492,231],{"class":230},[138,494,495,497,499,501,503,505,507,509,512],{"class":140,"line":178},[138,496,248],{"class":247},[138,498,251],{"class":226},[138,500,254],{"class":230},[138,502,257],{"class":226},[138,504,254],{"class":230},[138,506,411],{"class":226},[138,508,254],{"class":230},[138,510,511],{"class":226},"Commentator",[138,513,231],{"class":230},[138,515,516],{"class":140,"line":273},[138,517,270],{"emptyLinePlaceholder":269},[138,519,520,522,525,527,530,532],{"class":140,"line":305},[138,521,427],{"class":276},[138,523,524],{"class":144}," User",[138,526,433],{"class":276},[138,528,529],{"class":144}," Authenticatable",[138,531,439],{"class":276},[138,533,534],{"class":144}," Commentator\n",[138,536,537],{"class":140,"line":311},[138,538,308],{"class":230},[138,540,541,543,546],{"class":140,"line":322},[138,542,451],{"class":247},[138,544,545],{"class":226}," CanComment",[138,547,231],{"class":230},[138,549,550],{"class":140,"line":334},[138,551,358],{"class":230},[122,553,555],{"id":554},"add-to-your-resources","Add to Your Resources",[191,557,558],{},"Use the slide-over action on view or edit pages:",[127,560,563],{"className":238,"code":561,"filename":562,"language":166,"meta":133,"style":133},"use Relaticle\\Comments\\Filament\\Actions\\CommentsAction;\n\nprotected function getHeaderActions(): array\n{\n return [\n CommentsAction::make(),\n ];\n}\n","app\u002FFilament\u002FResources\u002FProjectResource\u002FPages\u002FViewProject.php",[135,564,565,592,596,612,616,623,634,639],{"__ignoreMap":133},[138,566,567,569,571,573,575,577,580,582,585,587,590],{"class":140,"line":141},[138,568,248],{"class":247},[138,570,251],{"class":226},[138,572,254],{"class":230},[138,574,257],{"class":226},[138,576,254],{"class":230},[138,578,579],{"class":226},"Filament",[138,581,254],{"class":230},[138,583,584],{"class":226},"Actions",[138,586,254],{"class":230},[138,588,589],{"class":226},"CommentsAction",[138,591,231],{"class":230},[138,593,594],{"class":140,"line":178},[138,595,270],{"emptyLinePlaceholder":269},[138,597,598,601,603,606,609],{"class":140,"line":273},[138,599,600],{"class":276},"protected",[138,602,280],{"class":276},[138,604,605],{"class":283}," getHeaderActions",[138,607,608],{"class":230},"():",[138,610,611],{"class":247}," array\n",[138,613,614],{"class":140,"line":305},[138,615,308],{"class":230},[138,617,618,620],{"class":140,"line":311},[138,619,314],{"class":222},[138,621,622],{"class":230}," [\n",[138,624,625,628,630,632],{"class":140,"line":322},[138,626,627],{"class":144}," CommentsAction",[138,629,340],{"class":230},[138,631,343],{"class":283},[138,633,346],{"class":230},[138,635,636],{"class":140,"line":334},[138,637,638],{"class":230}," ];\n",[138,640,641],{"class":140,"line":349},[138,642,358],{"class":230},[191,644,645,648],{},[92,646,647],{},"Done!"," Visit your Filament panel to see comments in action.",[81,650,652],{"id":651},"optional-configuration","Optional Configuration",[654,655,656,669],"table",{},[657,658,659],"thead",{},[660,661,662,666],"tr",{},[663,664,665],"th",{},"Command",[663,667,668],{},"Action",[670,671,672,683,693],"tbody",{},[660,673,674,680],{},[675,676,677],"td",{},[135,678,679],{},"php artisan vendor:publish --tag=comments-config",[675,681,682],{},"Publish the configuration file",[660,684,685,690],{},[675,686,687],{},[135,688,689],{},"php artisan vendor:publish --tag=comments-views",[675,691,692],{},"Publish the Blade views for customization",[660,694,695,700],{},[675,696,697],{},[135,698,699],{},"php artisan vendor:publish --tag=comments-translations",[675,701,702],{},"Publish the translation files",[704,705,706],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":133,"searchDepth":178,"depth":178,"links":708},[709,710,718],{"id":83,"depth":178,"text":84},{"id":116,"depth":178,"text":117,"children":711},[712,713,714,715,716,717],{"id":124,"depth":273,"text":125},{"id":155,"depth":273,"text":156},{"id":188,"depth":273,"text":189},{"id":234,"depth":273,"text":235},{"id":361,"depth":273,"text":362},{"id":554,"depth":273,"text":555},{"id":651,"depth":178,"text":652},"Get started with Comments in minutes.","md",null,{},{"icon":14},{"description":725,"ogImage":726,"title":11},"Install Comments and add commenting to your Filament resources.","\u002Fpreview.png","hts0PR3sg3h83C0GgqSeAnWX6Cg_8vAocaUiDee7xtg",[721,729],{"title":16,"path":17,"stem":18,"description":730,"icon":19,"children":-1},"Upgrade guide for Comments.",1774619384589] \ No newline at end of file diff --git a/getting-started/upgrading.html b/getting-started/upgrading.html index 02c557f..af19ebd 100644 --- a/getting-started/upgrading.html +++ b/getting-started/upgrading.html @@ -94,4 +94,4 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Upgrading - Comments
Comments Logo
1.x
Getting Started

Upgrading

Upgrade guide for Comments.

1.x

This is the initial release of Comments. Future upgrade guides will be documented here as new versions are released.

Copyright © 2026
\ No newline at end of file +}Upgrading - Comments
Comments Logo
1.x
Getting Started

Upgrading

Upgrade guide for Comments.

1.x

This is the initial release of Comments. Future upgrade guides will be documented here as new versions are released.

Copyright © 2026
\ No newline at end of file diff --git a/getting-started/upgrading/_payload.json b/getting-started/upgrading/_payload.json index 24ecec4..95239e9 100644 --- a/getting-started/upgrading/_payload.json +++ b/getting-started/upgrading/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":107},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-upgrading":75,"-getting-started-upgrading-surround":102},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":16,"body":77,"description":94,"extension":95,"links":96,"meta":97,"navigation":98,"path":17,"seo":99,"stem":18,"__hash__":101},"docs\u002F1.getting-started\u002F2.upgrading.md",{"type":78,"value":79,"toc":89},"minimark",[80,85],[81,82,84],"h2",{"id":83},"_1x","1.x",[86,87,88],"p",{},"This is the initial release of Comments. Future upgrade guides will be documented here as new versions are released.",{"title":90,"searchDepth":91,"depth":91,"links":92},"",2,[93],{"id":83,"depth":91,"text":84},"Upgrade guide for Comments.","md",null,{},{"icon":19},{"description":100,"title":16},"How to upgrade Comments between versions.","UMXomxygT7uwPpICEeZF6IUKBCOjp61y_fOB1k919zU",[103,105],{"title":11,"path":12,"stem":13,"description":104,"icon":14,"children":-1},"Get started with Comments in minutes.",{"title":26,"path":27,"stem":28,"description":106,"icon":29,"children":-1},"Configure threading, reactions, mentions, attachments, notifications, and more.",1774613434788] \ No newline at end of file +[{"data":1,"prerenderedAt":107},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-upgrading":75,"-getting-started-upgrading-surround":102},[4,20,60],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F2.upgrading","i-lucide-arrow-up-circle",{"title":21,"path":22,"stem":23,"children":24,"page":6},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":36,"path":37,"stem":38,"icon":39},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":41,"path":42,"stem":43,"icon":44},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":46,"path":47,"stem":48,"icon":49},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":51,"path":52,"stem":53,"icon":54},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":61,"path":62,"stem":63,"children":64,"page":6},"Community","\u002Fcommunity","4.community",[65,70],{"title":66,"path":67,"stem":68,"icon":69},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":71,"path":72,"stem":73,"icon":74},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":76,"title":16,"body":77,"description":94,"extension":95,"links":96,"meta":97,"navigation":98,"path":17,"seo":99,"stem":18,"__hash__":101},"docs\u002F1.getting-started\u002F2.upgrading.md",{"type":78,"value":79,"toc":89},"minimark",[80,85],[81,82,84],"h2",{"id":83},"_1x","1.x",[86,87,88],"p",{},"This is the initial release of Comments. Future upgrade guides will be documented here as new versions are released.",{"title":90,"searchDepth":91,"depth":91,"links":92},"",2,[93],{"id":83,"depth":91,"text":84},"Upgrade guide for Comments.","md",null,{},{"icon":19},{"description":100,"title":16},"How to upgrade Comments between versions.","UMXomxygT7uwPpICEeZF6IUKBCOjp61y_fOB1k919zU",[103,105],{"title":11,"path":12,"stem":13,"description":104,"icon":14,"children":-1},"Get started with Comments in minutes.",{"title":26,"path":27,"stem":28,"description":106,"icon":29,"children":-1},"Configure threading, reactions, mentions, attachments, notifications, and more.",1774619385138] \ No newline at end of file diff --git a/index.html b/index.html index c2adc9a..1d009ec 100644 --- a/index.html +++ b/index.html @@ -94,7 +94,7 @@ --ui-warning: var(--ui-color-warning-400); --ui-error: var(--ui-color-error-400); } -}Filament Comments System - Comments
Comments Logo
1.x

Comments

A full-featured commenting system for Filament panels with threaded replies, @mentions, emoji reactions, and real-time updates.

Drop-in integration with any Filament resource.

Alpha Software — Breaking changes may occur between releases. Not recommended for production use.
+}Filament Comments System - Comments
Comments Logo
1.x

Comments

A full-featured commenting system for Filament panels with threaded replies, @mentions, emoji reactions, and real-time updates.

Drop-in integration with any Filament resource.

Alpha Software — Breaking changes may occur between releases. Not recommended for production use.
-

Why choose Comments?

    Threaded Replies
    Nested comment threads with configurable depth limits. Users can reply to specific comments creating organized discussions.
    @Mentions
    Autocomplete user mentions with a customizable resolver interface. Dispatches events for notification handling.
    Emoji Reactions
    Six built-in emoji reactions with a configurable set. Users can react to comments with a single click.
    File Attachments
    Upload images and documents to comments with configurable storage, size limits, and MIME type validation.
    Real-time Updates
    Optional broadcasting via private channels with automatic polling fallback. Comments stay in sync across sessions.
    Full Filament Integration
    Three integration patterns: slide-over action, table row action, and infolist entry. Works with any Filament resource.

Our Ecosystem

Extend your Laravel applications with our ecosystem of complementary tools

FilaForms

Visual form builder for all your public-facing forms.

Custom Fields

Let users add custom fields to any model without code changes.

Copyright © 2026
\ No newline at end of file +

Why choose Comments?

    Threaded Replies
    Nested comment threads with configurable depth limits. Users can reply to specific comments creating organized discussions.
    @Mentions
    Autocomplete user mentions with a customizable resolver interface. Dispatches events for notification handling.
    Emoji Reactions
    Six built-in emoji reactions with a configurable set. Users can react to comments with a single click.
    File Attachments
    Upload images and documents to comments with configurable storage, size limits, and MIME type validation.
    Real-time Updates
    Optional broadcasting via private channels with automatic polling fallback. Comments stay in sync across sessions.
    Full Filament Integration
    Three integration patterns: slide-over action, table row action, and infolist entry. Works with any Filament resource.

Our Ecosystem

Extend your Laravel applications with our ecosystem of complementary tools

FilaForms

Visual form builder for all your public-facing forms.

Custom Fields

Let users add custom fields to any model without code changes.

Copyright © 2026
\ No newline at end of file