@stayallive
PHP artisan, full stack dev and server wrangler.
Nothing here yet.
Nothing here yet.
For debugging and/or easy searching it's handy to have the user ID in the NGINX access logs so you can quickly find logs for a specific user. There are 2 parts to achieving this: Add the user ID as a response header to our Laravel app using a middle...

Sometimes you want to store the user id with the session so you can purge all sessions or even a single session creating a more secure system for your users, or maybe you want to see how many times a user is logged in. There are many use cases but it...
