i have a laravel project and its uploaded on a sharing host i have this code for moving uploaded file to folder : $request->file->move(public_path('images\banners'), $new_name);
my website is like : root/ laravel public_html
i just want to move uploaded file to public_html folder
public function register()
{
//
$this->app->bind('path.public', function() {
return realpath(base_path().'/../public_html');
});
}
i try this but its not working