arnaudsf
arnaudsf
FFilament
Created by Melomancheto on 11/11/2024 in #❓┊help
Multi-tenancy for models with no direct relation to user
Just link game to organization too :
$table->foreignId('organization_id')->constrained()->cascadeOnDelete();
$table->foreignId('organization_id')->constrained()->cascadeOnDelete();
So like that, you can well tenant everything and if you delete an organization, it will automatically delete games too 🙂
9 replies
FFilament
Created by Melomancheto on 11/11/2024 in #❓┊help
Multi-tenancy for models with no direct relation to user
So GameResource is tenant of Organization and GameMedia is a RelationManager of GameResource
9 replies
FFilament
Created by Melomancheto on 11/11/2024 in #❓┊help
Multi-tenancy for models with no direct relation to user
Did you try to create resource for non tenant model ? If yes, I think it's not the good way to do. All the non-tenant, relationship are done with the relation manager. So you just have to give the relationship of your main domain who is linked to the tenancy
9 replies
FFilament
Created by Chaddus Maximus on 11/4/2024 in #❓┊help
Filament File Upload Custom Relationship
hello paulo, in this case, a repeater with a relationship can help
6 replies
FFilament
Created by Felix on 1/9/2024 in #❓┊help
Question: why does the Table go under the $table->contentFooter().
thanks @jelmerkeij
5 replies
FFilament
Created by Felix on 1/9/2024 in #❓┊help
Question: why does the Table go under the $table->contentFooter().
For futur reading, you have to put your view between <tr></tr>
5 replies
FFilament
Created by Felix on 1/9/2024 in #❓┊help
Question: why does the Table go under the $table->contentFooter().
Got the same, I overwrite css class to add flex, column, and order to table and my div. The lazy way 🫣
5 replies
FFilament
Created by jamesro on 11/5/2024 in #❓┊help
Custom page with table and filters
Could you provide full code ?
5 replies
FFilament
Created by Nuxnux on 11/4/2024 in #❓┊help
a weird problem with action
Becareful that $collection->toArray() convert only the first level to array, not nested objects :/
4 replies
FFilament
Created by fisnikr on 10/31/2024 in #❓┊help
Set up Role Based Access Control
There is the shield plugin for that
2 replies
FFilament
Created by simon on 11/3/2024 in #❓┊help
Minifying JS/CSS assets
couldn't be difference of node version ?
3 replies
FFilament
Created by Nuxnux on 11/4/2024 in #❓┊help
a weird problem with action
a collection is not an array, but you can use (array) $mycollection to convert it to array
4 replies
FFilament
Created by islandnuge on 11/4/2024 in #❓┊help
Ensuring a new record is saved and created before contents of afterStateUpdated() are executed
If you use a custom livewire component, can't you force the refresh ?
2 replies
FFilament
Created by Chaddus Maximus on 11/4/2024 in #❓┊help
Filament File Upload Custom Relationship
Hello, 3 ways to do that : 1/ Use a relation manager 2/ Use a repeater 3/ On your FileUpload, use multiple() and ->relationship(), as well Filament provide a method to preserve the original name. In Your JobPosting model, create a HasMany relationship As well, just for "good practices", prefer put the foreign keys at the beginning of your migration, after the id
6 replies
FFilament
Created by jamesro on 11/5/2024 in #❓┊help
Custom page with table and filters
If you set a custom Filter, you have to use a query. Otherwise, how laravel know what to do ? As well, you can use ->whereYear($year) in your query
5 replies
FFilament
Created by helter on 11/5/2024 in #❓┊help
Custom action based in Edit
Hello, could you describe more what you would like to do ?
4 replies
FFilament
Created by Rolland on 8/13/2024 in #❓┊help
Form select not updating options data
just for record if somebody is looking for it but I wasn't satisfyied by the createOption because I would to have a hintAction. So I changed the createOption for hintAction, do my stuff the $set('my_select', newId) works. My select is relatioship and it works
6 replies
FFilament
Created by Vexmachina on 6/1/2024 in #❓┊help
Not able to select newly created options using CreateOptionsForm until refresh
the only way I found to update the values is to have live() and preload() together.
13 replies
FFilament
Created by Rolland on 8/13/2024 in #❓┊help
Form select not updating options data
the only way I found to update the values is to have live() and preload() together.
6 replies
FFilament
Created by Vexmachina on 6/1/2024 in #❓┊help
Not able to select newly created options using CreateOptionsForm until refresh
up people found a way to refresh the options in the select ?
13 replies