Update Route.php

Nicking some bits from Laravel, will refactor to suit later. Currently not used.