JanV
How can I stream text/strings to the browser?
Hey folks,
I would like to return a streamed response from a Symfony Process (Laravel Process Facade) to the user (browser).
What does this mean?
So I have
cli
or a command that I call and that returns an ouput. Instead of waiting until the process is finished I want to stream the response incrementally to the user.
I know how to solve this in a Laravel native way but not sure how this would work with FilamentPHP components.
Anyone tried this already?2 replies
How to access an uploaded file without a resource
Hi there,
I'm trying to figure out how to access an uploaded file without storing it in the database using a resource. I want to access the file and process it after uploading it.
I have a custom page and a form with a
FileUpload
field.
It's pretty straightforward.
The documentation and other online sources require a resource, but I don't need it.
Any hints or suggestions would be helpful!15 replies
Revert ToggleColumn State after failed Validation
Hi there,
I have a
ToggleColumn
in a list view, and I’m facing an issue. I’ve added a validation rule, and based on the validation result, I want the toggle to revert to its previous state if the validation fails. This way, the user won’t be confused by seeing an invalid notification while the toggle state has changed.
I know this behavior works in the edit or create record views, but I haven’t found a solution for the list view yet.
Any hints or guidance would be greatly appreciated!9 replies
Line Chart not displayed caused by Alpine Error Exception
Hi there,
I am following the official tutorial on drawing charts (https://filamentphp.com/docs/3.x/widgets/charts).
I am using the Trend package as suggested to use Eloquent models.
I have an
OrdersChart
Class. It is very simple and follows the tutorial structure.
I included it in the AdminPanelProvider::widgets()
array parameter.
What doesn't work?
The line chart is not displayed.
What exceptions do I see?
I have tried to console log the s.data.datasets
in the function td(s, t)
the charts.js file to ensure I am not running crazy.
It would be great if someone could point me in a direction so I can see my mistake.4 replies