Skip to content

APP_URL is ignored and assets (stylesheets and javascript) are not loadingΒ #1575

Closed
@alexmocanu

Description

@alexmocanu

I've managed to reproduce this on a fresh laravel 11 install:

Installed Laravel 11:
composer create-project laravel/laravel:^11.0

In .env i've set the following:
APP_DEBUG=true
APP_URL=http://localhost:8900/testl/public --- my local server runs on port 8900 and I installed laravel in /testl

I installed the debug bar:
composer require barryvdh/laravel-debugbar --dev
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

The debug bar is ignoring the APP_URL variable and assets are not loading (it tries to load them from the root):

Screenshot:
test_failure

Composer and env files (had to use the txt extension - github won't let me upload them otherwise):
env.txt
composer.json
composer.lock.txt

The issue started appearing with v3.11.0. Installing v3.10 fixes the problem for me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions