skip to Main Content

Laravel private file serving pending problem

I save some photos privately in the storage and show them to the user when needed using the following method. in route : Route::get('/serveFile/{address?}', [FileController::class, 'serveFile']) ->where('address', '.*')->name('serveFile'); in controller : public function serveFile($address = null) { return response()->file(storage_path($address)); }…

VIEW QUESTION
Back To Top
Search