0

I'm using laraveldaily/laravel-invoices to generate invoices.

I've stored the receipt with ->save('public'); and stored this link to database with: $invoice->url().

I got a link like this: http://example.com/storage/pdf_name.pdf . But, File stored in storage/app/public/ folder

Now, If I hit this URL, it says **"Forbidden"** You don't have permission to access this resource.

What can I do now? and is there any way to store just folder and file name? like: folder/pdf_name.pdf

5
  • 1
    You can read laravel documentation. laravel.com/docs/9.x/filesystem Commented Mar 1, 2022 at 10:53
  • Does this answer your question? Laravel store Files from API with specific folder creation Commented Mar 1, 2022 at 10:54
  • @gguney I've checked your suggested question. But, it's not the answer to my question. Commented Mar 1, 2022 at 10:58
  • Did you read laravel documentation? Commented Mar 1, 2022 at 11:05
  • 1
    @gguney I've read Laravel's "File Storage" official documentation. Now my error has been solved. Commented Mar 2, 2022 at 10:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.