I am trying to concatenate image path and image file name and trying to save it into database in field name is ( public_path )
my image full path is: http://localhost/module_test/product_images/NINA-B1_single.jpg
there is folder name product_images in my root directory which have all the images.
My code is:
'public_path' => 'product_images/'. array_key_exists('basename', $nested['info']) ? $nested['info']['basename'] : "",
it is storing only file name(NINA-B1.png) into the database field but i also want to store full path with filename, how i can do that? any help will be appreciated.