After failing many times trying to get Mobile Detect to work I figured this would be easier: https://github.com/jenssegers/laravel-agent/
I followed the simple steps and it says the class can't be found. What did I miss?
Ok, so I started from scratch and used dump-autoload on both composer and artisan before adding the respective code to app/config/app.php and it worked.