Skip to content

php artisan storage:link outputs incorrect target path label [storagepublic] #55630

@wtw24

Description

@wtw24

Laravel Version

12.12.0

PHP Version

PHP 8.4.6

Database Driver & Version

No response

Description

When running:

php artisan storage:link

Laravel outputs:

The [public/storage] link has been connected to [storagepublic].

But $target is:

/app/storage/app/public

Confirmed via:

dump($link, $target);

This appears to be a display bug in Illuminate\Console\View\Components\Info, where the ANSI-formatted output misrepresents the $target path.

Expected Output:

The [public/storage] link has been connected to [/app/storage/app/public].

Actual Output:

The [public/storage] link has been connected to [storagepublic].

Environment: Docker (Alpine-based container)

Steps To Reproduce

run

php artisan storage:link

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions