© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Hemanath

Public variable()

public $franchisee;

Hidden::make('transaction_to')->default(
                function (Closure $get) {
                    $parentid = $this->franchisee;

                    return $parentid;
                }
            )
public $franchisee;

Hidden::make('transaction_to')->default(
                function (Closure $get) {
                    $parentid = $this->franchisee;

                    return $parentid;
                }
            )
the mount I am passing data to $this->franchisee, but it is not functioning when used in the default function.
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

Public Variable
FilamentFFilament / ❓┊help
3y ago
how to access public variable in getEloquentQuery
FilamentFFilament / ❓┊help
3y ago
Public access panel
FilamentFFilament / ❓┊help
2y ago
public access forms
FilamentFFilament / ❓┊help
2y ago