I made a website using laravel 7 and inertia js. Now I want to host this on Cpanel but I'm facing a problem. Here is my file structure on the server and I copy all files and folders from the public folder into the public_html folder
and I added some code on AppServiceProvider class
/** * Register any application services. * * @return void */ public function register() { $this->app->bind('path.public',function(){ return realpath(base_path().'/../public_html'); }); }
. When I go on my site link it shows me a blank white page.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community