Laravel 4 RESTful Api with content negotiation
问题 I'm working in a RESTFul API with laravel, and I want to use content negotiation in my project, but I don't know how to accomplish that. I have my controllers separted by api version, and I want to distinguish between api versions and use the correct controllerdepending on the version. My API router is: Route::group(array('prefix' => 'api'), function() { Route::resource('users', 'API\V1\UsersController'); }); Should I create a api.type filter to use in my route group or Should I do that in