Skip to content

[Bug] Route::resource problem when using $uri like "api/deployement" with a slash #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maximebeaudoin opened this issue Feb 1, 2013 · 2 comments

Comments

@maximebeaudoin
Copy link
Contributor

Hi,

I have update my beautifuly laravel packages today and now, this routing not working anymore :

Route::resource('api/deployment', 'ApiDeploymentController');

I can access to http://localhost/api/deployment but not on http://localhost/api/deployment/1. The framework return me a NotFoundHttpException exception.

If i use this routing instead, all methods works on http://localhost/deployment

Route::resource('deployment', 'ApiDeploymentController');

@andrewryno
Copy link
Contributor

Looks to be the same issue as #226. Using this should work:

Route::group(array('prefix' => 'api'), function()
{
    Route::resource('deployment', 'ApiDeploymentController');
});

@maximebeaudoin
Copy link
Contributor Author

OK, i'll take a look thank you

joelharkes pushed a commit to joelharkes/framework_old that referenced this issue Mar 7, 2019
joelharkes pushed a commit to joelharkes/framework_old that referenced this issue Mar 7, 2019
dbpolito pushed a commit to dbpolito/framework that referenced this issue Oct 1, 2019
gonzalom pushed a commit to Hydrane/tmp-laravel-framework that referenced this issue Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants