Login page parameters
Hello everyone!
I've been struggling with something i'm trying to achieve and would like to ask someone to read my case and give me some advise.
Case
In order to understand what i tried, you might wanna check out my code below first.
I've been struggling with something i'm trying to achieve and would like to ask someone to read my case and give me some advise.
Case
- I have created my own 'Team' system and i'm working on team invitations.
- Currently, users can receive emails in their inbox with a link to
https://xxxx.com/user/login?invitation=xxxxxxxxxxx - The login url/route leads to an extended class of
Filament\Pages\Auth\Loginwhich i assigned in the UserPanelProvider in$panel->login(UserLogi::class) - I'm stuck at handling the extra 'invitation' parameter.
- I may add/handle more parameters in the future for handling different kind of actions/requests.
- How can access the 'invitation' and possibly other parameters in my UserLogin class?
- Since i can't find any other similiar cases. Am i doing this all wrong?
In order to understand what i tried, you might wanna check out my code below first.
- In my
public function form(Form $form)orpublic function __construct()when i dodd(request('invite')i can see the value of the parameter. - But in my
public function beforeAuthenticate()it returnsnull - I've tried to set a parameter in my constructor but it gets set back to null when i'm in my
public function authenticate()