princeoo7
1 month ago
122
1
Laravel

Laravel Valet not working after updating public to public_html

Posted 1 month ago by princeoo7

I had to make public to public_html due to server requirements. Now the issue is, its working with server but not on my local machine. It gives 404.

I made the changes to serve.php and app\Provider\AppServicesProvider.php files and they are working fine.

         $this->app->bind('path.public', function() {
            return base_path().'/public_html';
        });

Now I did try the symlic thing and its working for one project.

command used:

ln -s /Users/xyz/Development/web/abc/public_html public

but I need now I have 2 more such projects where public needs to be public_html.

What can be a better and long term solution here ?

Please sign in or create an account to participate in this conversation.