Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Avbook | 8,777 | 7 months ago | 85 | PHP | ||||||
AV 电影管理系统, avmoo , javbus , javlibrary 爬虫,线上 AV 影片图书馆,AV 磁力链接数据库,Japanese Adult Video Library,Adult Video Magnet Links - Japanese Adult Video Database | ||||||||||
Aimeos Laravel | 6,489 | 25 | 1 | 4 days ago | 126 | January 24, 2023 | 3 | mit | PHP | |
Laravel ecommerce package for ultra fast online shops, scalable marketplaces, complex B2B applications and #gigacommerce | ||||||||||
Laravel Tips | 5,844 | 19 days ago | 1 | |||||||
Awesome tips for Laravel | ||||||||||
Laravel Backup | 5,330 | 699 | 130 | 8 days ago | 278 | August 09, 2023 | 2 | mit | PHP | |
A package to backup your Laravel app | ||||||||||
Database | 2,597 | 13,607 | 6,512 | 4 days ago | 707 | August 08, 2023 | mit | PHP | ||
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework) | ||||||||||
Laravel Translatable | 1,975 | 349 | 136 | 4 years ago | 44 | June 03, 2019 | mit | PHP | ||
[Deprecated] A Laravel package for multilingual models | ||||||||||
Pingcrm | 1,872 | a month ago | 26 | mit | PHP | |||||
A demo application to illustrate how Inertia.js works. | ||||||||||
Backup Manager | 1,626 | 275 | 14 | 8 months ago | 43 | July 05, 2022 | 14 | mit | PHP | |
Database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, SFTP, and Rackspace Cloud | ||||||||||
Laravel Tags | 1,482 | 64 | 30 | 22 days ago | 69 | July 31, 2023 | 3 | mit | PHP | |
Add tags and taggable behaviour to your Laravel app | ||||||||||
Prequel | 1,445 | 2 | 1 | 4 months ago | 12 | February 28, 2022 | 4 | mit | JavaScript | |
Prequel for Laravel. Clear and concise database management. |
This package provides support for storing your Statamic data in a database rather than the filesystem.
Install using Composer:
composer require statamic/eloquent-driver
Publish the config file:
php artisan vendor:publish --tag="statamic-eloquent-config"
Since Statamic uses UUIDs within content files by default, we provide two solutions depending on whether you need to use existing content.
If you're starting from scratch, we can use traditional incrementing integers for IDs.
content/collections/pages/home.md
tree
in content/trees/collections/pages.yaml
to {}
.php artisan vendor:publish --provider="Statamic\Eloquent\ServiceProvider" --tag=migrations
.php artisan vendor:publish --tag="statamic-eloquent-entries-table"
.php artisan migrate
.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.
config/statamic/eloquent-driver.php
file, change entries.model
to \Statamic\Eloquent\Entries\UuidEntryModel::class
.php artisan vendor:publish --provider="Statamic\Eloquent\ServiceProvider" --tag=migrations
.php artisan vendor:publish --tag="statamic-eloquent-entries-table-with-string-ids"
.php artisan migrate
.The configuration file (statamic.eloquent-driver
) allows you to choose which repositories you want to be driven by eloquent. By default, all are selected, but if you want to opt out simply change driver
from eloquent
to file
for that repository.
You may also specify your own models for each repository, should you wish to use something different from the one provided.
After upgrading please ensure to run php artisan migrate
to update your database to the latest schema.
We have provided imports from file based content for each repository, which can be run as follows:
php please eloquent:import-assets
php please eloquent:import-blueprints
php please eloquent:import-collections
php please eloquent:import-entries
php please eloquent:import-forms
php please eloquent:import-globals
php please eloquent:import-navs
php please eloquent:import-revisions
php please eloquent:import-taxonomies
We have provided exports from eloquent to file based content for each repository, which can be run as follows:
php please eloquent:export-assets
php please eloquent:export-blueprints
php please eloquent:export-collections
php please eloquent:export-entries
php please eloquent:export-forms
php please eloquent:export-globals
php please eloquent:export-navs
php please eloquent:export-revisions
php please eloquent:export-taxonomies
Statamic has a built-in users eloquent driver if you'd like to cross that bridge too.
This driver does not make it possible to have some collections/entries file driven and some eloquent driven. If that is your requirement you may want to look into using Runway.