This is just an approach off the top of my head...
Create a middleware like php artisan make:middleware LoginOrRegisterFromIpAddress
I would add ip_address to the user table migration.
Have the middleware grab the users ip request()->ip or whatever works.
Check the users table for that ip, if it exists, log the user in.
If it doesn't exist, create the user then log them in.