Call action method from livewire

Can an action method be invoked in Livewire? I attempted to call an action method within the mount and rendered methods of Livewire, but it doesn't seem to be working.
public function rendered()
{

$this->register();
}

public function register(): Action
{
return Action::make('register')
->form([

...

])
->closeModalByClickingAway(false)
->modalCloseButton(false)
->action(

);
}
public function rendered()
{

$this->register();
}

public function register(): Action
{
return Action::make('register')
->form([

...

])
->closeModalByClickingAway(false)
->modalCloseButton(false)
->action(

);
}
3 Replies
waleedGRT
waleedGRTOP13mo ago
fi
waleedGRT
waleedGRTOP13mo ago
Certainly, you're correct. I've adhered to the instructions outlined in the documentation, but I'm interested in automatically triggering the actions function and displaying the model on the screen when the page loads. Is there a way to achieve this?

Did you find this page helpful?