© 2026 Hedgehog Software, LLC

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

SimplePage render custom view data?

Hello,

I'm trying to create a SimplePage that non-logged in users can view. I'm just having a issue where the data set in
getViewData()
getViewData()
or a custom
render()
render()
function is not showing up to the view?


I've tried ovewriting the following and everything works except passing in data. I even tried just putting the data manually where $this->getViewData() is. I know I can use $this->variableName but I'd really not like to do that since people can see that data right? I just want to render some data.

public function render(): View
    {
        return view(self::$view, $this->getViewData())
            ->layout(self::$layout, [
                'livewire' => $this,
                'maxContentWidth' => 'full',
                ...[],
            ]);
    }
public function render(): View
    {
        return view(self::$view, $this->getViewData())
            ->layout(self::$layout, [
                'livewire' => $this,
                'maxContentWidth' => 'full',
                ...[],
            ]);
    }


TDLR: Passing data to render() is not working but manually entering the data variables in mount() works.
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

Render SimplePage without route?
FilamentFFilament / ❓┊help
2y ago
Change Sizing of SimplePage In View File?
FilamentFFilament / ❓┊help
2y ago
SimplePage not using a Panel for Render Hooks/Colors
FilamentFFilament / ❓┊help
2y ago
Custom Field - load data for the view
FilamentFFilament / ❓┊help
3y ago