Returns a 404 error when linking into a file

Posted 10 months ago by jonjie

Hi guys, I'm trying to visit a specific pdf file in my laravel app. but it returns an error that's telling me to create a route. I think it's because of the path I'm giving. Do you have any idea to solve this? Please see my code below for your reference:

<iframe src="{{ asset($exam->file_path) }}" frameborder="0"></iframe>

I'm basically returning $exam from my controller.

If I dd() the $exam->file_path, it returns file/1/pdf/Examination part 1.pdf

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.