I have a detail when uploading my project to a server, the detail consists of how to remove the public from the url
Work with metronic laravel
What web server are you using? If you are using Nginx, please check the config for Nginx here;
https://laravel.com/docs/9.x/deployment#nginx
Or if you are using apache, you can use .htaccess config to remove the public folder from the URL.
https://stackoverflow.com/a/60109320
Thanks
I am referring to the public, when the project is in production
example
https://mypage/resource/public
remove that say only
https://mypage/resource/
Hi,
Could you please clarify your question? Usually, we use url() or asset() helper function to get the URL. Please check below links for more details.
https://laravel.com/docs/9.x/urls#accessing-the-current-url
https://laracasts.com/discuss/channels/general-discussion/asset-vs-url
Thanks