Custom guard

Posted 1 year ago by tiagomatosweb

Hi all, I have frontend website which connects to the API via JWT as many apps out there. Is there a way to create a custom guard to store the token in the session in order to use Auth facilities like Auth::check() ?

Currently, I just save manually the token in the session and check session data normally using session().

However, I would like to use guard, how would I do it? Any article?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.