Skip to content

Commit 1cdcdd2

Browse files
committed
Example of route helper
1 parent db2836e commit 1cdcdd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

helpers.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ Generate a URL for a given controller action.
283283

284284
$url = action('HomeController@getIndex', $params);
285285

286+
### route
287+
288+
Generate a URL for a given named route.
289+
290+
$url = route('routeName', $params);
291+
286292
### asset
287293

288294
Generate a URL for an asset.

0 commit comments

Comments
 (0)