Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

Route Tag

The route tag allows you to generate the full URL for a given named route, including any parameters.

Overview

This tag is equivalent to the route() helper in Laravel. Useful for outputting the correct urls for all your glorious routes.

Example

Route::put('bacon/{bacon}', 'BaconController@update')->name('bacon.update');
<form action="{{ route:bacon.update :bacon="id" }}">
... yummy bacon goodness
</form>
<form action="{{ route('bacon.update', ['bacon' => $id]) }}">
... yummy bacon goodness
</form>
<form action="/bacon/6">
... yummy bacon goodness
</form>

Variables

Variable Type Description

name

string

The route's name

route params

various

parameters the route requires

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →