This is probably nitpicky, but I was wondering how the namespace for the Laravel 4.2 "Route" works (using the resource function).
So... in all the documentation (http://laravel.com/docs/4.2/controllers#resource-controllers), you see this:
Route::resource('photo', 'PhotoController');
However, when I go to the "Route" documentation (http://laravel.com/api/4.2/Illuminate/Routing/Route.html) you can see that the function "resource", doesn't exist there. Instead, it exists under "Router" (http://laravel.com/api/4.2/Illuminate/Routing/Router.html).
How do I use the PHP "use" statements to specify that I'm using the resource function? The example itself is accurate and works when I call (in that it shows all the routes that I expect):
php artisan routes
How does Laravel make the Route vs. Router namespace work?