@helpmyworld Can you confirm two things?
- Run
php artisan storage:linkfor Symbolic link - Provide the right permission for
public_html/images
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
my website or project runs and always has been working well until I upgrade to Laravel 10 (the upgrade to Laravel 10 is not a problem). My website/project is a blog. Blog posts I posted from last year 25 December 23 back to the fist post show and display images stored in public_html/images. After I uploaded the upgrade. I tried to post, the post is created, images shows it is uploaded in the database but for some reason it has created a folder in my laravel project projectname/public/images - now these new images don't display on on the views but the old blog post images are showing in the views. I haven't changed any code, just upgrade since my website is been working for years.
What I want is for image to be stored in public_html/images and show. *NOTE: I am using whm centos server. /home/rorisangproject/laravelcode/ in here its the code, .env /home/rorisangproject/public_html/ where index, images, css are stored
Controller still fine haven't made changes
public function store(Request $request)
{
$this->validate($request,[
'title' => 'required',
'cats' => 'required',
'tags' => 'required',
'body' => 'required',
]);
$post = $request->file('image');
$slug = str_slug($request->title);
if ($request->hasFile('image')) {
$image = $request->file('image');
$filename = time() . '.' . $image->getClientOriginalExtension();
$location = public_path('images/' . $filename);
Image::make($image)->resize(800, 400)->save($location);
$post->image = $filename;
//code is fine I am sure
View
<img decoding="async" class="alignnone size-large wp-image-37576" src="{{asset('/images/' . $post->image)}}" alt="" width="600" height="600">
Please advise where I am going wrong. my website is running rorisangmaimane.co.za but I can't upload new images.
@helpmyworld Move all images from public_html/images to public/images and then delete the folder images in public_html after that try to make the symlink again
Please or to participate in this conversation.