Support the ongoing development of Laravel.io →
posted 10 years ago
Views

Hello , I have 2 routh here.

Route::get('/admin','AdminController@adminPage'); Route::get('/admin/edit/content','AdminController@adminPage');

The '/admin' page is render correctly , but when I call the '/admin/edit/content' page is messy and it's fire this error

[2014-10-12 17:37:39] production.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in C:\wamp\www\lc\bootstrap\compiled.php:5702 Stack trace: #0 C:\wamp\www\lc\bootstrap\compiled.php(5019): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request)) #1 C:\wamp\www\lc\bootstrap\compiled.php(5007): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request)) #2 C:\wamp\www\lc\bootstrap\compiled.php(4999): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #3 C:\wamp\www\lc\bootstrap\compiled.php(722): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #4 C:\wamp\www\lc\bootstrap\compiled.php(703): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #5 C:\wamp\www\lc\bootstrap\compiled.php(7763): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #6 C:\wamp\www\lc\bootstrap\compiled.php(8370): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #7 C:\wamp\www\lc\bootstrap\compiled.php(8317): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #8 C:\wamp\www\lc\bootstrap\compiled.php(10955): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #9 C:\wamp\www\lc\bootstrap\compiled.php(664): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #10 C:\wamp\www\lc\index.php(49): Illuminate\Foundation\Application->run() #11 {main} [] []

What's wrong?

//sorry for my poor English.

Last updated 3 years ago.
0

You appear to have your environment set as production, which will make it tricky to debug any issues you have. Read Environment Configuration, implement and then try again.

Last updated 3 years ago.
0

The issue will probably be because you have your adminPage controller referenced for both routes.

In your controller, if you have two adminPage methods, it will break. Try to rename the second method and route to something different.

Hopefully that will fix it.

Last updated 3 years ago.
0

I fixed it by replace every <script> with HTML::script(''); it worked now every page look good. Anyway thanks for the help.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

zexuswolf zexuswolf Joined 12 Oct 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.

© 2025 Laravel.io - All rights reserved.