I think you're looking for the storage_path() helper function.
https://laravel.com/docs/5.5/helpers#method-storage-path
// Something like this.
$filePath = storage_path('app/img/fileName.png');
I uploaded files using this code :
$file = $request->file('project_img'); $ext = $file->extension(); $filename = $p_id.".".$ext; $file->storeAs('img', $filename);
The file is saved under storage/app/img and the file name in my database table , please how do i reference the file url in src attribute.
Please or to participate in this conversation.