Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Shawdow's avatar

Illuminate \ Contracts \ Filesystem \ FileNotFoundException

i am not able to view the video content in page shows me error as Illuminate \ Contracts \ Filesystem \ FileNotFoundException so how to get the video??

 public function get_video()
    {
        $fileContents = Storage::disk('public')->get("/storage/videos/Sc.png");
        $response = Response::make($fileContents, 200);
        $response->header('Content-Type', "video/mp4");

        return $response;

}

0 likes
2 replies
Procat's avatar

What is the file path from the laravel root directory?

As far as I can tell, assuming default config, you're looking for a file in storage/app/public/storage/videos/, is that correct?

Please or to participate in this conversation.