laravel-storage

storage:link not working on hosting cPanel

左心房为你撑大大i 提交于 2020-12-13 17:55:53
问题 So, I've created a storage link with php artisan storage:link and it's working totally fine on localhost , However when I deploy my project on a shared hosting, it does not show any images. This is my hosting directory structure: - home2/username : + other hosting folders : - MyLaravelWebSite : : + other laravel folders : : - storage : : : - app : : : : - public : : : : : -images : : : : : : * some-image.jpg : : : : * gitignore : : : + framework : : : + logs : - public_html : : + assets : : +

storage:link not working on hosting cPanel

只愿长相守 提交于 2020-12-13 17:55:47
问题 So, I've created a storage link with php artisan storage:link and it's working totally fine on localhost , However when I deploy my project on a shared hosting, it does not show any images. This is my hosting directory structure: - home2/username : + other hosting folders : - MyLaravelWebSite : : + other laravel folders : : - storage : : : - app : : : : - public : : : : : -images : : : : : : * some-image.jpg : : : : * gitignore : : : + framework : : : + logs : - public_html : : + assets : : +

storage:link not working on hosting cPanel

末鹿安然 提交于 2020-12-13 17:52:31
问题 So, I've created a storage link with php artisan storage:link and it's working totally fine on localhost , However when I deploy my project on a shared hosting, it does not show any images. This is my hosting directory structure: - home2/username : + other hosting folders : - MyLaravelWebSite : : + other laravel folders : : - storage : : : - app : : : : - public : : : : : -images : : : : : : * some-image.jpg : : : : * gitignore : : : + framework : : : + logs : - public_html : : + assets : : +

Laravel How To use another server as file storage

怎甘沉沦 提交于 2020-07-22 06:13:51
问题 I am using Laravel 7.6: I have two Laravel projects in each server (server is normal server. Neither AWS nor Digital Ocean, Just dedicated server). Project1 is in server1. Project2 is in server2. My question is: How can I do CRUD from Project1 To server2? So in Project1 I would like to read, upload, delete, edit files which are in server2. This is my current filesystem configuration. 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], 'public' => [ 'driver' =>

Understanding file storage and protecting contents Laravel 5

落花浮王杯 提交于 2020-04-30 09:08:25
问题 I need help understanding Laravel's file storage system. I'm creating an app where I need to upload a users drivers license photo. This is obviously sensitive information. I would like to keep this image off of the internet unless an admin is viewing it. My understanding is that i have to save things to the public directory in the storage>app>public and create a symlink to the public>storage folder. I have this done and it's working fine. I save the path to the database and the program can

Understanding file storage and protecting contents Laravel 5

*爱你&永不变心* 提交于 2020-04-30 09:07:30
问题 I need help understanding Laravel's file storage system. I'm creating an app where I need to upload a users drivers license photo. This is obviously sensitive information. I would like to keep this image off of the internet unless an admin is viewing it. My understanding is that i have to save things to the public directory in the storage>app>public and create a symlink to the public>storage folder. I have this done and it's working fine. I save the path to the database and the program can

How do I remove /storage from the URL for public images in my Laravel project?

試著忘記壹切 提交于 2019-12-11 05:37:56
问题 What I am trying to achieve is to remove the /storage from the URL, so that in the end it is www.example.com/images/x.jpg and not the default www.example.com/storage/x.jpg . I have tried removing /storage from the url in config/filesystems.php like this: // Original 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url' => env('APP_URL') . '/storage', 'visibility' => 'public', ], // Modified 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url'