All Projects → statamic → Eloquent Driver

statamic / Eloquent Driver

A package that allows you to store Statamic entries in a database.

Projects that are alternatives of or similar to Eloquent Driver

Laravel Tags
Add tags and taggable behaviour to your Laravel app
Stars: ✭ 1,026 (+3564.29%)
Mutual labels:  eloquent, database, laravel
Laravel Settings
Store key value pair in database as settings
Stars: ✭ 107 (+282.14%)
Mutual labels:  eloquent, database, laravel
Gorose
GoRose(go orm), a mini database ORM for golang, which inspired by the famous php framwork laravle's eloquent. It will be friendly for php developer and python or ruby developer. Currently provides six major database drivers: mysql,sqlite3,postgres,oracle,mssql, Clickhouse.
Stars: ✭ 947 (+3282.14%)
Mutual labels:  eloquent, database, laravel
Laravel
Laravel Model Generator
Stars: ✭ 715 (+2453.57%)
Mutual labels:  eloquent, database, laravel
Decoy
A Laravel model-based CMS
Stars: ✭ 303 (+982.14%)
Mutual labels:  cms, eloquent, laravel
Laravel Migrate Fresh
An artisan command to build up a database from scratch
Stars: ✭ 179 (+539.29%)
Mutual labels:  eloquent, database, laravel
Laravel Optimistic Locking
Adds optimistic locking feature to eloquent models.
Stars: ✭ 71 (+153.57%)
Mutual labels:  eloquent, database, laravel
Laravel Eloquent Query Cache
Adding cache on your Laravel Eloquent queries' results is now a breeze.
Stars: ✭ 529 (+1789.29%)
Mutual labels:  eloquent, database, laravel
Cms
Multilingual PHP CMS built with Laravel and bootstrap
Stars: ✭ 2,342 (+8264.29%)
Mutual labels:  cms, eloquent, laravel
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+750%)
Mutual labels:  eloquent, database, laravel
Lada Cache
A Redis based, fully automated and scalable database cache layer for Laravel
Stars: ✭ 424 (+1414.29%)
Mutual labels:  eloquent, database, laravel
Laravel Translatable
A Laravel package for multilingual models
Stars: ✭ 624 (+2128.57%)
Mutual labels:  eloquent, database, laravel
Platform
A modular multilingual CMS built with Laravel 5.
Stars: ✭ 719 (+2467.86%)
Mutual labels:  cms, laravel
Learning laravel kernel
Laravel核心代码学习
Stars: ✭ 789 (+2717.86%)
Mutual labels:  database, laravel
Laravel Sluggable
An opinionated package to create slugs for Eloquent models
Stars: ✭ 831 (+2867.86%)
Mutual labels:  eloquent, laravel
Laravel Repositories
[ABANDONED] Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
Stars: ✭ 664 (+2271.43%)
Mutual labels:  eloquent, laravel
Laravel Love
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Stars: ✭ 822 (+2835.71%)
Mutual labels:  eloquent, laravel
Goloquent
This repo no longer under maintenance, please go to https://github.com/si3nloong/sqlike
Stars: ✭ 16 (-42.86%)
Mutual labels:  eloquent, database
Simple Cache
An easy to use Caching trait for Laravel's Eloquent Models.
Stars: ✭ 19 (-32.14%)
Mutual labels:  eloquent, laravel
Eloquent Ldap
A Laravel 5.1 package that first tries to log the user against the internal database if that fails, it tries against the configured LDAP/AD server.
Stars: ✭ 19 (-32.14%)
Mutual labels:  eloquent, laravel

Statamic Eloquent Driver

This package provides support for storing your Statamic data in a database rather than the filesystem.

This driver currently supports entries but not taxonomies, navigations, globals, or form submissions. We'll be working on those in the future.

Installation

Install using Composer:

composer require statamic/eloquent-driver

Publish the config file:

php artisan vendor:publish --provider="Statamic\Eloquent\ServiceProvider"

Since Statamic uses UUIDs within content files by default, we provide two solutions depending on whether you need to use existing content.

Fresh install of statamic/statamic (using incrementing ids)

If you're starting from scratch, we can use traditional incrementing integers for IDs.

  • Delete content/collections/pages/home.md
  • Change the structure tree in content/collections/pages.yaml to {}.
  • Copy the create_entries_table migration into database/migrations.
  • Run php artisan migrate.

Starting from an existing site (using UUIDs)

If you're planning to use existing content, we can use the existing UUIDs. This will prevent you from needing to update any data or relationships.

  • In the config/statamic-eloquent-driver.php file, change model to UuidEntryModel.
  • Copy the create_entries_table_with_strings migration into database/migrations.
  • Run php artisan migrate.
  • Import entries into database with php please eloquent:import-entries.

Storing Users in a Database

Statamic has a built-in users eloquent driver if you'd like to cross that bridge too.

Known issues

When saving a collection or reordering entries, the URIs of all entries in the collection will be updated, even if they haven't changed. This is an intensive operation and is being addressed in a future version of Statamic core.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].