I'm starting out with Laravel and was wondering if it's possible and relatively elegant to use a different session driver depending on the route requested.
Ideally I'd like to share the functionality of my models between my main app and its accompanying REST API, and use the native session driver for the main app (/admin), and the array driver for the REST API (/admin/api). Using different config files for different environments is obvious to me, but this would be the same environment just different routes.
If someone could point out the best method to do this in Laravel it'd be most appreciatied.