Set the protocol on the Laravel route

I have a route on a site that is a webcal resource, so we would like the URL to be generated using webcal://when used {{ URL::route('calendar') }}in the Blade template.

I tried to add a protocol parameter, but this is ignored, so I think there should be a different way?

Route::get('/calendar.ics',
    [
        'as' => 'calendar',
        'uses' => 'EntityController@calendar',
        'protocol' => 'webcal'
    ]
);

Suggestions are welcome!

+4
source share
1 answer

URIs webcalare not official protocols. webcal://will actually be transferred to another application as http://.

, , URI .

Content-Type: text/calendar, , .

0

All Articles