i had to ask this question here. i have seen so many other responses and none of them worked.. even after i editted the register function inside the app/providers/AppServiceProvider.php file - from a solution i got on laracasts.
public function register(){
$this->app->bind('path.public_html', function(){
return base_path(). '/public_html';
});
//
}
with this set, the hompage loaded successfully. but then after editting the welcome route to this ::
Route::get('/', function () {
echo public_path(); //resolves to:: C:\xampp\htdocs\paprng\public
exit;
return view('welcome');
});
my public_path() function resolves to " C:\xampp\htdocs\paprng\public "..
please is there a string value of "public" somewhere in the laravel app. structure that requires editting to " public_html ", to avoid this error.
Thanks in advance.