Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Adds about command that Checks storage symbolic links status #54001

Draft
wants to merge 7 commits into
base: 11.x
Choose a base branch
from

Conversation

adampatterson
Copy link
Contributor

@adampatterson adampatterson commented Dec 23, 2024

I've added a section to the php artisan about command that shows the status of of the filesystems links.

While helping some developers debug why their media isn't displaying correctly, it is often a result of forgetting to link the storage folder.

// config/filesystem.php
return [
    'links' => [
        public_path('storage') => storage_path('app/public'),
    ],
];

php artisan about

Storage 
public/storage .................................................. LINKED 
// config/filesystem.php
return [
    'links' => [
        public_path('storage') => storage_path('app/public'),
        public_path('images') => storage_path('app/images'),
    ],
];

Running php artisan about will show that the logs link has not been made.

Storage 
public/images ................................................... NOT LINKED  
public/storage .................................................. LINKED

Running php artisan storage:link and then php artisan about will show the newly create symbolic link.

Storage 
public/images .................................................. LINKED
public/storage ................................................. LINKED

ref #53656

Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant