AbdallahSabri's avatar

Get image path in Passport API

I stored a file using laravel api, I used the following method

$upload = $this->request->file('avatar');
$path = $upload->storeAs($file_path, $file_name);
return $path;

Now when I want to retrieve the file from API, it shows that file not found

Not Found
The requested URL /public/storage/app/profiles/1/2018_7_18_104345_me.PNG was not found on this server.

I did the following command

php artisan storage:link
0 likes
0 replies

Please or to participate in this conversation.