Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Hiiro's avatar
Level 2

how to connect public folder to public_html folder on hostinger?

i have an issue when uploading a file, the picture stored to database and included in public folder, but it didn't showing anything..

but when i try to copy the picture from public folder to public_html folder, the picture appeared..

what should i do?

0 likes
1 reply
Hiiro's avatar
Hiiro
OP
Best Answer
Level 2

nvm, already worked..

tried on appserviceprovider :

$this->app->bind('path.public', function() {
    return realpath(base_path().'/../public_html');
  });

Please or to participate in this conversation.