Question: i want to see an image that i have uploaded on my rest api.

[here is the file i have uploaded](https://i.stack.imgur.com/EqE1M.png)

i have try this code,

```
public function MostrarImagenUsuario($id){
    $usuario = Usuario::find($id);
    $link = Storage::disk('public')->url('app/'.$usuario->foto);
    return response()->file($link);
}

```

but when i tried to test it with postman it sends me this error.

FileNotFoundException: The file "<http://localhost/storage/app/public/IqFviqFca7PPEXQlOK0nnBf11Yg2mXne8xzuR0wh.jpeg>" does not exist in file 

also i have try this method

```
public function MostrarImagenUsuario2($id){
    $usuario = Usuario::find($id);
    $link = Storage::get($usuario->foto);;
    return $link;
}

```

and i get this result:

[second result](https://i.stack.imgur.com/vuMn5.png)

finally i dont know how to solve this.

Answer: 
your code does not work because you try get image from non public directory in laravel all public asset always store in root public folder.
in the case of images you can store in storage/app/public but whwn you want to get image always use public/ folder and it both connected with the sync link.

```
php artisan storage:link

```

use this command for sync link

after run this command 1shortcut created in your root public folder.
and you can all images from root public shortcut.

```
$url = Storage::url('database filed name where you store image data');

```
Make sure you have created storage link by calling php artisan storage:link

Then you can get the url of your storage file.

$url = Storage::url('file.jpg');