Use new Laravel 5 helper in Laravel 4.
Copy and paste helpers.php
file in this repo to laravel app/
folder or whatever you want
Require it in bootstrap/start.php
require_once $app['path.base'].'/app/helpers.php';
So, you're done to use it.
group(array('before' => 'auth'), function() {
// code
}
get('page', array('as' => 'page', 'uses' => 'PageController@index'))
view('index')
get
, post
, put
, patch
, delete
, view
and redirect
group
, pattern
, when
(all for routes) and share
(for view)