diff --git a/src/Reporting/Page.php b/src/Reporting/Page.php index 0536f1ac..c34c190f 100644 --- a/src/Reporting/Page.php +++ b/src/Reporting/Page.php @@ -6,6 +6,7 @@ use Statamic\Facades\File; use Statamic\Facades\YAML; use Statamic\Support\Arr; +use Statamic\Support\Str; class Page { @@ -152,7 +153,7 @@ public function model() public function editUrl() { - if (starts_with($this->id, 'route:')) { + if (Str::startsWith($this->id, 'route:')) { return route('settings.edit', ['settings' => 'routes']); }