Support the ongoing development of Laravel.io →
Laravel Mix

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 enter image description here and I copy all files and folders from the public folder into the public_html folder enter image description here 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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.