Answer the question
In order to leave comments, you need to log in
How to restrict access to files?
Hello. There are online store files that can be easily accessed via /storage/app/notes/. How to restrict access for a group of users to this directory? Thanks in advance for your
replies.
My product loading code:
$disk = $this->factory->disk('notes');
$disk->putFileAs('',$request->file('pdf'),$pdfName);
$disk->setVisibility(''.$pdfName,'private');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question