Issue
Laravel 5.7 PHP 7.2 DB mysql
already see https://laravel.com/docs/5.7/filesystem I am using the Local Driver.
after some process, I have set a image to public file. e.g. https://127.0.0.1/storage/myViewFile/0120020301-3.png
I want to set only can view dir "myView File" after login.
How can I do it? thank you.
Solution
Route::get('/storage/files/{file}', 'FilesController@show')->middleware('auth');
and in the show
method display the image.
Answered By - Andy Song
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.