Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The magiclink object is injected upon receiving the call of the ResponseAction class #43

Merged
merged 4 commits into from
Sep 20, 2021

Conversation

cesargb
Copy link
Owner

@cesargb cesargb commented Sep 15, 2021

You can access to magiclink object when call ResponseAction function

$magiclink = MagicLink::create(new ResponseAction(
    function ($magiclink) {
           if (Auth::user()->actived) {
               $magiclink->delete();

                return 'your account was activated';
            }

            return 'active your account';
      })
);

@cesargb cesargb linked an issue Sep 17, 2021 that may be closed by this pull request
@cesargb cesargb changed the title add argument magiclink in ResponseAction function The magiclink object is injected upon receiving the call of the ResponseAction class Sep 20, 2021
@cesargb cesargb merged commit 51af576 into master Sep 20, 2021
@cesargb cesargb deleted the update_link branch December 8, 2021 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QUESTION] How to overwrite or extend middleware
1 participant