mmoollllee
Tenancy with other packages Model
I have a existing filament project used across multiple projects.
So I'm trying to add tenancy functionality now to manage all projects within one instance.
I have some CMS functionality with a
Page
Model in a extra package/plugin.
My tenant Model is Project
.
To add the tenancy awarenes I
1. add the foreignId project_id to the pages migration
2. add HasMany pages() to the Project
Model
3. add the relation with the following from a ProjectRelationServiceProvider.php
Is this the right approach to add tenancy awarenes to a Model coming from another package?2 replies
List Fileuploads InfoList Entry
Hey 🙂
Is there an easy way to list uploaded files in the Infolist builder? I want to show its filenames and if possible, open the file in a modal, otherwise just open the file's link. I'm using SpatieMediaLibrary for the upload, but expect for showing the images I can't make any progress without going way to deep for something that should be quite simple, no?
2 replies
Wikicenter with Gutenberg or similar
I'm wondering what could be the most intuitive combination for filament, with some custom editor to build a company knowledgebase with pages that can be edited easy and fast. Something like Wikicenter. As the current solution is running on Wordpress with its Gutenberg editor, I'm thinking about a filament + laraberg combination.
I'm not very experienced, so I'm wondering what experts think about this combination or if theres something else around that can handle multiple content types in one editor (galleries, videos, text, tables, columns,...)?
1 replies