Benjamin Crozat “Heard about Sevalla? They let you deploy PHP apps with ease.” Claim $50 →

nabilhassen.com

Learn Laravel’s File facade with clear examples →

If you lean on Storage a lot, this unofficial guide to Laravel’s File facade is a great wake‑up call. Nabil Hassen walks through what File can do, from quick checks like exists and isDirectory to handy reads with get and lines, safe writes with put, JSON parsing, and fast text changes with replaceInFile. He also covers directory helpers like ensureDirectoryExists, symlinks, and even macros and testing with spies and fakes. I liked the tiny code samples that show how to stream big files and lock writes. If you want a faster way to handle files in Laravel without pulling in Storage, this is a solid, focused read.

Read more on nabilhassen.com →


Did you like this article? Then, keep learning:

Help me reach more people by sharing this article on social media!

0 comments

Guest

Markdown is supported.

Hey, you need to sign in with your GitHub account to comment. Get started →

Great tools for developers

Search for posts and links

Try to type something…