On the local PC, the link looks like this.

http: //psiholog.local/storage/uploads/rGyMd8hnz6CybUfbqGP4FG6UIzsoQ0mJjhUTSUTu.jpeg

Transferred to hosting, photo does not load, found by scientific method how photos are stored

http://test.n985572n.beget.tech/storage/app/public/uploads/z0SxISj9yniZuomDoZBn51S3PLGba8MaXnDEznR0.jpeg

How to make links the same?

On the PC I ran the php artisan storage:link command php artisan storage:link On the hosting I just created a symbolic link to the folder

  • and how do you generate this link? - n.osennij 8:18 pm
  • <pre> $ path = $ request-> file ('image') -> store ('uploads', 'public'); <code> 'public' => ['driver' => 'local', 'root' => storage_path ('app / public'), 'url' => env ('APP_URL'). visibility '=>' public ', - Dima

0