I deployed laravel app on shared hosting in public_html/app folder. Here is everything from public folder. In /../../files I have rest of files. When I do php artisan storag
I'm face same error when use share hosting and my public directory move to public_html or different directory like : project directory in root name "project" and public directory in root name "public_html"
when run artisan command by Artisan::call('storage:link'); then face this error.
Solution: 1st need to bind your public directory in app/Providers/AppServiceProvider register method
$this->app->bind('path.public', function() {
return base_path('../public_html');
});
Now run the command its working fine