Added new unsetRoute() to allow route() to rebuild

This commit is contained in:
Andy Miller
2015-08-06 18:30:50 -06:00
parent 1e168b3100
commit 5cee23cbfa

View File

@@ -1224,6 +1224,15 @@ class Page
return $this->route;
}
/**
* Helper method to clear the route out so it regenerates next time you use it
*/
public function unsetRoute()
{
unset($this->route);
}
public function rawRoute($var = null)
{
if ($var !== null) {