Laravel Paper is a package that lets you use Markdown and JSON files as Eloquent data sources, eliminating the need for a traditional database in content-heavy scenarios. It supports the standard Eloquent query API (where, orderBy, find, whereContains), file-based relationships (belongsToPaper, hasManyPaper), and full CRUD operations that map directly to filesystem reads and writes. The package requires PHP 8.4 and Laravel 12.0+, uses PHP 8 attributes for configuration, and supports YAML frontmatter for metadata in Markdown files.
Table of contents
# Turning Files into Models# Querying File Data# File-Based Relationships# Managing Files through Eloquent# Installation15 Comments
Sort: