petehouston/laravel-deploy-on-shared-hosting

Uploading File

Closed this issue · 1 comments

Hi,
I got a problem when uploading file. My website is running well by following your steps, but when uploading image (ex: change user profile image), the file goes to project/public/profile-image instead of www/profile-image.

I think it should be on www/profile-image. What if I want it to maket it like that, how to solve it?
Please help.

Thanks

I got the solution

// set the public path to file index.php on www directory
$app->bind('path.public', function() {
return DIR;
});