This is a very basic, but hopefully an efective way to detect both Guest and Registered users on your Laravel application.
The Usage and the Eloquent Model are basically the same on both Laravel 4 and Laravel 5, just the installation differs, since the application structure is different.
Please refer to one of the following links for installation on Laravel 4 or on Laravel 5.