I´ve created a duplicate project of mine to upgrade from Laravel 10 to Laravel 12. As far as the PHP code, routes, and database everything went well as expected.
Yet, in my Laravel 10 project I had my images, css, js, inside the /storage/app/public/ directory and I´ve been calling those assets, for instance an image in the frontend home view as
<img src="{!! asset('assets/images/logos/LOGO-SQUARE-BLUE-WHITE.svg') !!}" class="img-fluid floating-top-logo" style="width: 100% \9;" alt="{!! config('app.name') !!}"> and all works perfectly.
On the new Laravel 12, I´ve maintained the same storage links and same directory structures (both in view and in storage), but the images do not show and all the assets in the deve console display as 404 (not found).
I have removed all the symlinks and rebuild the filesystem configuration again with artisan storage:link. The symlinks were created in the /public/directory.
In the config/filesystems.php configuration file I have the following:
links => [
public_path('assets') => storage_path('app/public'),
]
The above configuration works in my Laravel 10 project and not on 12.
What I've noticed is that the symlinks in the /public/ directory are referencing the full path to the external drive. E.g. assets -> /Volumes/SERVERS/VirtualBoxes VMS/Servers/nginx24/www/myproject/storage/app/
Any ideas of what I might be doing wrong? Thanks in advance for any help.