There is an action method from laravel
{{ action('ExampleController@index', $parameters) }}
This will only output https if the site runs on https. If you run this site locally it will probably not return https, but in production it will ;)
What's the easiest way to generate a URL to a controller action (exampleController@index) with HTTPs active and set a title, so a HTML link like this would be generated in view:
<a href="https://www.example.com/sample">sample title</a>
I tried to use link_to_action() but seems like this helper function isn't avaible in view?
This will only return an url for you, but you can create your own helper function which add the title.
A quick tip, if you use the form builder package you get these methods out of the box
link_to_action('DashboardController@settings, 'Settings'));
Please or to participate in this conversation.