saly3301
2 weeks ago

Laravel route getting error

Posted 2 weeks ago by saly3301

I have the following route:

Route::get(
    '{slug}-lawyer-in-nepal',
    array(
        'as' => 'practise-area.detail',
        'uses' => '[email protected]'
    )
);

It works when the slug does not contain "-", but throws 404 when has. Any solutions for this?

Please sign in or create an account to participate in this conversation.