-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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 --forceNo 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
| if (is_link($link)) { | |
| $this->laravel->make('files')->delete($link); | |
| } |
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 --forcetwice (1st time to create the links, second time to fail)
Metadata
Metadata
Assignees
Labels
No labels