DJ SneezyCheese
DJ SneezyCheese
FFilament
Created by DJ SneezyCheese on 11/11/2024 in #❓┊help
Exporter keeps returning empty file
I am new to PHP and Filament and I am trying to build an exporter to export PricingImportLanes that have a matching pricing_import_id to the triggering PricingImport record. Essentially a user can upload an excel file (this is the pricing import) and each row is parsed out into a pricing import lane. I want the lanes to export to an excel file when that pricing_import's export button is clicked. At this time the column headers are the only thing in the spreadsheet that exports and the "exporting X row" always matches the number of rows in pricing_imports not the number of rows to be exported from pricing_import_lanes. I've attached a working exporter from our system that is similarly purposed and its models, as well as the PricingExporter that is not working and its models and resource. Looking forward to any assistance!
3 replies
FFilament
Created by DJ SneezyCheese on 10/18/2024 in #❓┊help
Create & Add another button is closing the relation manager modal
In every relation manager I've tested the Create & add another button also animates the create button and then the modal closes instead of remaining open after saving the record. Seems suspiciously similar to bug 10094 https://github.com/filamentphp/filament/issues/10094 Anyone else experiencing this? Is there a workaround?
15 replies
FFilament
Created by DJ SneezyCheese on 9/30/2024 in #❓┊help
Database notifications in database but not rendering on page
I am unsure where to even begin to look here. Database notifications are being written to the notifications table but they are not subsequently reflecting in the interface. The counter remains at 0 and clicking the bell/refreshing and clicking yields no change in results. I'm a tad new to Filament/PHP but I am learning quick. I look forward to any and all help!
6 replies
FFilament
Created by DJ SneezyCheese on 9/23/2024 in #❓┊help
REDACTED Relation Managers not rendering on resource
I have been trying to add 2 relation managers to my CarrierResource.php - CarrierTasksRelationManager and CarrierActivitiesRelationManager. I have done my best to define the appropriate model relationships but fear I have missed something along the way. The other 4 relation managers on the page do render, but the 2 aforementioned do not. I will attach files for context. I am new to PHP and Filament and have only a couple of months of experience. I appreciate your patience!
7 replies
FFilament
Created by DJ SneezyCheese on 9/9/2024 in #❓┊help
Typed static property Filament\Resources\Pages\Page::$resource must not be accessed before...
I was trying to introduce a service to set up an additional field on the client profile called 'proxy_phone' and I introduced this error I cannot seem to get around. I am new to Filament and PHP. I will attach the PHP files I've modified in this process in hopes of isolating where I've introduced this error, as well as include the error and its stack trace as well.
3 replies
FFilament
Created by DJ SneezyCheese on 8/23/2024 in #❓┊help
Create button on relation manager just animates spinning circle one time and does not submit.
I am working on building a relation manager for ClientCarrierAvailableTrucks. When I click the Create button after filling in form data the Create button animates with a circle one time and nothing happens, no data is submitted to the databse and the modal remains on screen. I had the same behavior with my other relation manager when a hidden field was marked as required that was getting filled in on submit. I have thoroughly (I believe) removed any requirements for hidden textinputs yet this still does not submit correctly. I am a bit new to laravel/php/filament. I have attached the relation manager and associated models as well as the resource in which the relation manager is located. Any assistance is highly appreciated as I am stuck.
25 replies
FFilament
Created by DJ SneezyCheese on 8/20/2024 in #❓┊help
Uncaught TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
Clicking the button to add an item in my relation manager I've added to one of my resource pages yields the following error and button action does not complete:
VM26130:21 Uncaught TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
at eval (eval at safeAsyncFunction (livewire.js?id=cc800bf4:1176:21), <anonymous>:21:43)
at livewire.js?id=cc800bf4:1521:9
at releaseNextTicks (livewire.js?id=cc800bf4:1529:24)
at livewire.js?id=cc800bf4:1516:9
VM26130:21 Uncaught TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
at eval (eval at safeAsyncFunction (livewire.js?id=cc800bf4:1176:21), <anonymous>:21:43)
at livewire.js?id=cc800bf4:1521:9
at releaseNextTicks (livewire.js?id=cc800bf4:1529:24)
at livewire.js?id=cc800bf4:1516:9
Has anyone experienced this before? I am so stuck and I have tried all sorts of approaches to make this work. Thank you in advance for any input!
5 replies