Skip to content

Sharing backend login with frontend #1265

Answered by pboivin
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aarontilt, I guess this will depend on your frontend configuration but if you're using standard Blade views on your frontend, you can access the current Twill user like this:

$user = Auth::guard('twill_users')->user();

You shoud get null if the current user is not logged in.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@ghost
Comment options

@pboivin
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant