I've just installed Laravel in my pc and I have a problem with routing. When a user type the URL http://laravel.app/admin without logging in, I want to redirect it to http://laravel.app/login?Return_URL=http://laravel.app/admin just what Jeffrey Way did to Laracast.
How can I do it?
I already added this to my routes.php
Route::get('/admin', array('before' => 'auth', 'as' => 'admin.index', 'uses' => 'AdminController@index'));
And I don't know what to do next.
=== CLARIFICATION ===
When a user went to a protected pages which is /admin or /admin/{{other-page}} I want it to be redirected to /login but with the parameter of URL in which where it went before he was redirected to login page. After successfully logged in, the user will then be redirected to the first URL he intended to go to which is captured in the ?Return_URL= parameter.