Closed
Description
Laravel Version
12.19.0
PHP Version
8.2.28
Database Driver & Version
any
Description
StorageLinkCommand
fails even with --force
option
After PR #55994 the command below
php artisan storage:link --force
No longer works.
PR #55994 added a is_file()
check before deleting a file. But that check returns false for a symlink.
Therefore, any existing links are not deleted here:
framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php
Lines 42 to 44 in c86346f
ping @taylorotwell @crynobone
I can't work on a PR right now.
Steps To Reproduce
- Create a new Laravel app
- Run
php artisan storage:link --force
twice (1st time to create the links, second time to fail)
Metadata
Metadata
Assignees
Labels
No labels