Get relative path with `route()` in Laravel

I needed to generate a relative path, but the Laravel route helper generates absolute paths by default.

Turns out it also accepts a third $absolute argument, and setting it to false generates an relative path instead.

1route('page.show', $page->id);
2// http://laravel.test/pages/1
3 
4route('page.show', $page->id, false);
5// /pages/1