Encode forward slashes in resource `getPages()`
https://laravel.com/docs/12.x/routing#parameters-encoded-forward-slashes
The Laravel routing component allows all characters except / to be present within route parameter values. You must explicitly allow / to be part of your placeholder using a where condition regular expression:
How to do something like this in
getPages()
?
Solution:Jump to solution
The solution was to add the following overwrite to ViewResource.php
```php
public static function route(string $path): PageRegistration
{...
1 Reply
Solution
The solution was to add the following overwrite to ViewResource.php