added the ability to pass classes into route bindings

https://github.com/laravel/framework/pull/4982