© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
adic1040

__construct being called twice on custom page

class MyPage extends Page
{
  public function __construct()
    {
      Debugbar::info(microtime());
    }
}
class MyPage extends Page
{
  public function __construct()
    {
      Debugbar::info(microtime());
    }
}

This will output two results:
0.55048200 1680612812
0.55084500 1680612812

Why is that and how to fix it?
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

Does afterStateHydrated called twice?
FilamentFFilament / ❓┊help
3y ago
mutateFormDataBeforeCreate not being called on create
FilamentFFilament / ❓┊help
3mo ago
It is possible do use __construct on Edit Page?
FilamentFFilament / ❓┊help
3y ago
addAction function called on page load
FilamentFFilament / ❓┊help
17mo ago