Support the ongoing development of Laravel.io →
posted 11 years ago
Requests

Hey, i am quite new into laravel. I saw this in documentation to force a URL serve over https

Route::get('foo', array('https', function()
{
    return 'Must be over HTTPS';
}));

thing is how to point it to a controller? Not using closure

Last updated 3 years ago.
0

Untested:

Route::get('foo', array(
	'https', 
	'uses' => 'FooController@getIndex'
));
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

d1p d1p Joined 28 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.