laravel-debugbar: PhpDebugBar is not defined - Laravel 5.1
Hi, I know that a similar issue has been solved before, but I tried to follow the same suggested procedures but none of them worked for me. I’m using Laravel 5.1 .
I’m getting the following 404 not found errors :
<http://my_website_url/_debugbar/assets/stylesheets?1436453519>
<http://my_website_url/_debugbar/assets/javascript?1423122680>
and <PhpDebugBar is not defined>
I put debugbar first in the ServiceProviders and I don’t have a catchall in my routes. The only thing I have in my routes is the following:
<Route::get('/', 'WelcomeController@index');>
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 47 (2 by maintainers)
Links to this issue
Commits related to this issue
- debugbar https://github.com/barryvdh/laravel-debugbar/issues/387 — committed to dwijpr/blog by dwijpr 8 years ago
I’m also experiencing this issue. I solved this by adding 2 routes in the RouteServiceProvider.
I don’t know if this is the best ‘solution’, but it works for me.
a2enmod rewrite
+1 Should be fixed.
Here’s a variant of @mikevrind solution that worked for me. Added this to my app/Http/routes.php:
solution
If the dev environment of your laravel project is using the default configuration of Apache for web root directory , make sure the AllowOverride All is set for the web root directory.
Restart web service and try reloading the page. The debug bar should be showing up properly.
Found out that another one might be required for AJAX calls (open handler).
According to this, complete app/Http/routes.php would now be:
If mod rewrite is disabled, all the Laravel rewriting probably doesn’t work. So not really sure why this is an issue with debugbar.
Thanks, this is still broken. This took me waaaay too long to find.
Deleting it from all my projects…
@days85 i was missing
AllowOverride all
from my vhost config, that solved it.This problem appears when we set
This is more likely Laravel problem.
Route::controller('/', 'SomeController')
in ourroutes.php
file. Laravel create{_missing}
route before package routes, and it matches everything tonot found
.