© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Bruno Silva

Require Login/Register to Execute Action

I have a public page (Livewire component) with a Filament form:

class CreateFirstBooking extends SimplePage implements HasForms
{
  use InteractsWithForms;

  public ?array $data = [];

  // ...

  public function form(Form $form): Form
  {
    // public form...
  }

  // ...

  public function submit()
  {
    // exec code after the user logs in or registers
  }
}
class CreateFirstBooking extends SimplePage implements HasForms
{
  use InteractsWithForms;

  public ?array $data = [];

  // ...

  public function form(Form $form): Form
  {
    // public form...
  }

  // ...

  public function submit()
  {
    // exec code after the user logs in or registers
  }
}


I wish to submit this form and execute some code after the user logs in or registers...

The flow would be:
- Fill out the form
- Click the submit button
- Register or Login
- Use that user recently created or logged user to execute some code

Is that possible using the Filament login/register form?
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

Login/Register: Columns
FilamentFFilament / ❓┊help
3y ago
Action does not execute
FilamentFFilament / ❓┊help
13mo ago
Execute an action after the default action
FilamentFFilament / ❓┊help
3y ago
Custom register page (register link on login page)
FilamentFFilament / ❓┊help
2y ago