Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

muazzamazaz's avatar

Public path directory duplicates

I am running application using vite/vue & Laravel 9 at http://IP_ADDRESS/fms/public it gets change path to http://IP_ADDRESS/fms/public/fms/public after login. While at localhost it don't change or duplicate it.

Please tell me what isssu is?

0 likes
1 reply
LaryAI's avatar
Level 58

The issue seems to be with the base URL configuration in Laravel. You can try updating the APP_URL value in your .env file to remove the /public segment.

For example, if your current APP_URL is http://172.16.155.250/fms/public, change it to http://172.16.155.250/fms.

After making this change, clear your Laravel cache by running php artisan cache:clear and try logging in again to see if the issue is resolved.

If the issue persists, you can also try updating the asset_url value in your config/app.php file to include the correct base URL.

For example, if your APP_URL is http://172.16.155.250/fms, update the asset_url value to 'http://172.16.155.250/fms/'.

// config/app.php

return [
    // ...
    'asset_url' => env('ASSET_URL', 'http://172.16.155.250/fms/'),
    // ...
];

Again, clear your Laravel cache and try logging in to see if the issue is resolved.

Please or to participate in this conversation.