return $myModel->hasMany(Comments::class);
                  
                  
                  });
                  
                  
                  Example: https://github.com/Ser1ous/evocms-comments
                  
                  
                  Video(ru): https://www.youtube.com/watch?v=gJj05HwOm0A
                  
                  
                  Lib: https://github.com/i-rocky/eloquent-dynamic-relation
                  
                  
                  
                  
                  
                  
                  
                  
                  Change log:
                  
                  
                   - Update DocLister
                  
                  
                   - fix: manager fix change theme (Serious)
                  
                  
                   - fix: #1271 childrens should be children (Dmi3yy)
                  
                  
                   - fix: #1294 Bad layout on page template-bound resources (Dmi3yy)
                  
                  
                   - fix: Lang issue & #1272 (Dmi3yy)
                  
                  
                   - fix: forgot ->db-> #1265 (Dmi3yy)
                  
                  
                   - fix: issets are need in codemirror plugin #1264 (Dmi3yy)
                  
                  
                   - fix: needs isset #1263 (Dmi3yy)
                  
                  
                   - fix: getDocumentObject method (Pathologic)
                  
                  
                   - fix: need use correct cachekey with event and GET (Dmi3yy)
                  
                  
                   - fix: manager theme bug (Dmi3yy)
                  
                  
                   - fix: styles anв icons (Ruslan Aleev)
                  
                  
                   - fix: tree icon for private resource (Mr 😎
                  
                  
                   - fix: No hint path defined for [cache] (Pathologic)
                  
                  
                   - fix: Corrected lexicons, Corrected output of lexicons in template (Ruslan Aleev)
                  
                  
                   - fix: send mail to manager e-mail. (Yevhen Lebediev)
                  
                  
                   - fix: demo site install (Pathologic)
                  
                  
                   - fix: fullscreen tinymce hiding buttons (Mr 😎
                  
                  
                   - fix: parse plugin params (dzhuryn.volodymyr)
                  
                  
                   - refactor: htaccess add rules for remove // #1239 fix (Dmi3yy)
                  
                  
                   - new: (core) Add Dynamic Relation (Ser1ous)
                  
                  
                
во круто, даже мой issue пофиксили)
Обсуждают сегодня