Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Laravel Paper: Treat Markdown Files as Eloquent Models Without a Database

Laravel News 1 min read

Laravel Paper is a new package that allows developers to use markdown files on disk as Eloquent models, eliminating the need for a traditional database. In a recent video, Laravel News demonstrated how to build a small notes app using this approach.

The package works by mapping a folder of markdown files to Eloquent models. Each markdown file represents a record, with front matter providing metadata. Relationships such as hasMany and belongsTo are supported, enabling notebooks to have multiple notes.

For example, a Notebook model can define a hasMany relationship to Note models, which are stored as markdown files in a content directory. The Note model uses a belongsTo relationship back to the Notebook. This allows developers to leverage Eloquent's conveniences without a database or migrations.

The video walked through installing the package, defining models, and setting up the file structure. The notes app includes features like search, editing, and a UI for organizing notebooks.

Laravel Paper is particularly useful for projects that benefit from flat-file storage, such as documentation sites, personal wikis, or blogs with simple content management needs. It offers a unique blend of Eloquent's familiar syntax with the simplicity of markdown files.

React