App::before(function($request)
{
    if( ! Request::secure())
    {
        return Redirect::secure(Request::getRequestUri());
    }
});

Using Filters

Another option might be to create a filter like so. People generally store this also in app/filters.php.

Route::filter('force.ssl', function()
{
    if( ! Request::secure())
    {
        return Redirect::secure(Request::getRequestUri());
    }

});

You can then enforce that new filter to any of your routes, route groups, or controllers like this.

Individual Route

Route::get('something', ['before' => 'force.ssl', function()
{
    return "This will be forced SSL";
}];
Route Group
Route::group(['before' => 'force.ssl', function()
{
    // Routes here.
}

Controller

You’ll need to do this in your controller’s __construct() method.

public function __construct()
{
    $this->beforeFilter('force.ssl');
}

Source from http://stackoverflow.com/questions/19967788/laravel-redirect-all-requests-to-https