Laravel 8 not showing new images

I have my Laravel 8 project on a shared hosting which uses cPanel. Uploaded my files and database with some records, for old records website displays all the images, but when I upload new images they’re not showing up, photos are uploading on a storage folder, but not showing up.

HTML code:

<img src="/storage/{{ $post->photo}}"/>

This is a link to a stored images:

https://website.com/storage/images/

PostController image upload:

$image = $request->file('photo')->store('images', 'public');

Any suggestions?

Answer

Found a solution from here: laracasts.com

Solution is to delete the “STORAGE” folder if exists, then run this command line:

php artisan storage:link