1

When I try to add a new route to my router, I got this weird error: preg_match(): Compilation failed: two named subpatterns have the same name at offset 39

I've already checked my router for double routes, changed the route name but it doesn't work.

This is my route: Route::resource('/visitor/:id', 'Visitors\Controllers\EditVisitorController')

Does anybody know that this problem could be?

user1470265
  • 143
  • 1
  • 9

1 Answers1

0

I have a similar question here. What I did was get a detailed trace of the error. The detailed trace will give you the routes that have conflicts. An example of my code to debug my error is this:

$app = new \Slim\Slim(array(
    'debug' => false
));
$app->error(function (\Exception $e) use ($app) {
    //enter manipulation of $e->getTrace()
    //or just var_dump($e->getTrace()) but the format would be chaotic
});
Community
  • 1
  • 1
Earl Lapura
  • 165
  • 2
  • 12