laravel-debugbar: assets.css and assets.js not found
Hi, I just updated to the latest laravel-debugbar and now I’m getting 404 Not Found errors when loading
/_debugbar/assets.css?xxxxx /_debugbar/assets.js?xxxxx
I can see that the routes are properly registered, but for some reason Nginx is not routing it correct. Could it be my Nginx config? Here is my config taken from the Server section below:
location / {
# URLs to attempt, including pretty ones.
try_files $uri $uri/ /index.php?$query_string;
}
# Remove trailing slash to please routing system.
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
# PHP FPM configuration.
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fcgi.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# We don't need .ht files with nginx.
location ~ /\.ht {
deny all;
}
# Set header expirations on per-project basis
location ~* \.(?:ico|css|js|jpe?g|JPG|png|svg|woff)$ {
expires 365d;
}
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 36 (17 by maintainers)
Commits related to this issue
- Fix BaseController $app instance Doesn't properly reflect in 4.0, so fixed it like this. Probably not the prettiest way.. See #187 — committed to barryvdh/laravel-debugbar by barryvdh 10 years ago
After updating composer, add the ServiceProvider to the providers array in config/app.php
And what kind of error do you get on the assets.css file?
Can you try renaming to to something without extension here: https://github.com/barryvdh/laravel-debugbar/blob/master/src/ServiceProvider.php#L46
So something like this: