© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
Wojtek-R

Pass data to widget from custom page

Hi,

I'm trying to pass custom variable to widget component like below, but keep getting this error

<x-filament-panels::page :widget-data="['shift' => $shift]">
<x-filament-panels::page :widget-data="['shift' => $shift]">

"trim(): Argument #1 ($string) must be of type string, array given"

any help guys?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

pass data to widget from custom page
FilamentFFilament / ❓┊help
3y ago
Pass data to widget
FilamentFFilament / ❓┊help
3y ago
how can i pass data to widget from editRecords page?
FilamentFFilament / ❓┊help
3y ago
Pass URL parameter from Page to Widget
FilamentFFilament / ❓┊help
2y ago