adam
adam
FFilament
Created by adam on 11/5/2024 in #❓┊help
Hide Site Search for a user role
I have a role that doesn't have access to anything really and I'd like to hide the global search for them without needing to go into 20+ resources and restricting them. ->globalSearch(false); Auth isn't initialize at this point so I'm unable to check for a user role.
3 replies
FFilament
Created by adam on 8/28/2024 in #❓┊help
How can I add steps to the DateTime UI
No description
9 replies
FFilament
Created by adam on 5/29/2024 in #❓┊help
Is it no longer possible to call Vite in the Panel Providers asset method?
I was getting an exception when a fresh install runs @php artisan package:discover --ansi
Illuminate\Foundation\ViteManifestNotFoundException
Vite manifest not found at: /opt/atlassian/pipelines/agent/build/public/build/manifest.json
Illuminate\Foundation\ViteManifestNotFoundException
Vite manifest not found at: /opt/atlassian/pipelines/agent/build/public/build/manifest.json
I see the examples in the docs are using resource_path but I'm using SASS I can fix the issue by using ! app()->runningInConsole() but that feels really wrong. My gut tells me this is an issue with the app ( laravel Shift from 10 -11 ) and something's wonkey.
59 replies
FFilament
Created by adam on 10/23/2023 in #❓┊help
NavigationItem visible and Hidden do not work
The gist has a number of tests. the TLDR is that unless you use registerNavigationGroups and set the properties in the resource. The default code doesn't manage the display of the NavigationItems properly. https://gist.github.com/adampatterson/75ec08f5938e0d26b851dd743726781c
2 replies
FFilament
Created by adam on 9/8/2023 in #❓┊help
Unable to read form values in Table Actions
No description
14 replies
FFilament
Created by adam on 8/3/2023 in #❓┊help
Create a View page that only contains the relation manager tabs.
I have a situation where I'd like to display the relation manager tabs above the edit form for a specific resource. I thought it would be straightforward to create a custom page and then add the Relation managers to it but it's not. The relation managers are loaded from the resource. Is there any way to remove the relation mangers from the edit page ( so that it looks like the create ) and then load them on my custom page?
4 replies
FFilament
Created by adam on 5/3/2023 in #❓┊help
Permission denied when uploading images, PDFs work.
I am using SpatieMediaLibraryFileUpload to upload PDF's and images I added acceptedFileTypes(['application/pdf', 'image/jpeg', 'image/jpg', 'image/png', 'image/gif']) this lets me upload a PDF without issue, and it lets me select images but the images won't upload. Using image() also doerns't work but blocks PDFs But the image uploads are erroring at livewires endpoint but displaying an Nginx 500 error, the logs are showing that it's a permission issue. These images are like 40 K so it's not a size issue ` 2023/05/03 12:37:14 [crit] 67214#0: *1345 open() "/opt/homebrew/var/run/nginx/client_body_temp/0000000006" failed (13: Permission denied), client: 127.0.0.1, server: redacted.test, request: "POST /livewire/upload-file?expires=1683139334&signature=a2be0ff3714cb57218225122756bc5daf19f8f9c41c3d3a0bc3ca65d247b50e9 HTTP/1.1", host: "redacted.test", referrer: "http://redacted.test/admin/inspections/1/submit"`
7 replies
FFilament
Created by adam on 4/27/2023 in #❓┊help
Edit a Relation though a resource
I have an Instance model that has a HasOne relationship called CertificationRequest . In the InstanceRelation form I'd like to update a column on the CertificationRequest called Notes. I tried RichEditor::make('certificationRequest.notes') but no joy. I'd use a RelationManager but It's important that this is a page and not a modal. Alternatively, is it possible to load Resource/ID/Relation/new or something like that? If I create a CertificationRequestResource I'd have to pass an inspection ID in the query string to grab some of the data needed for display. Thanks!
2 replies
FFilament
Created by adam on 4/24/2023 in #❓┊help
Access table data outside of the table
3 replies
FFilament
Created by adam on 3/2/2023 in #❓┊help
Ability to pre-filter Relation Manager table results
I have a bunch of records with various statuses, I'd like to omit Cancelled when the user loads the page, but allow it as a filtered option. I have a SelectFilter with multiple options, I saw that I could enable default on a toggle or something like that but don't think it works on a select. I also tried to use getTableQuery but the filters are unable to overwrite the results.
6 replies