Abhilash19's avatar

uploading image using php artisan storage:link

I'm using "php artisan storage:link" for storing image files into my database table. I am using the same database for two projects. The problem is I can upload image from only one project. But when I try the same with other project, image will not insert and also I can't find image name in my project storage/app/public. And I am not getting any errors. Apart from image, other data will store in the table. Can anyone help what is my mistake? I'm new to laravel.

0 likes
2 replies
Abhilash19's avatar

@rumm.an $image = $request->file('images')->store('public/images'); $add->images = str_replace('public/images/','',$image);

Please or to participate in this conversation.