Support the ongoing development of Laravel.io →
Security Requests
Last updated 2 years ago.
0
Solution

UPDATE: I realize I have to register the pattern before the call to the parent's boot.

    public function boot(Router $router)
    {
        $router->pattern(['id' => '[0-9]+']);       
        parent::boot($router);
    }
0

Sign in to participate in this thread!

Eventy

Your banner here too?

miagg miagg Joined 26 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.