Advanced SEO
  • Overview
  • Getting Started
    • Installation
    • Drivers
    • Migration
  • Usage
    • Settings & Defaults
    • On-Page SEO
    • Customizing Fields
    • Social Images Generator
    • Crawling
    • Sitemaps
    • Antlers & Blade
    • GraphQL
    • Custom Routes
    • Permissions
    • Meta Tags & Scripts
Powered by GitBook
On this page
  • File
  • Database
  1. Getting Started

Drivers

Advanced SEO supports saving data in either flat-files or in a database.

PreviousInstallationNextMigration

Last updated 1 month ago

File

The File driver is the default database driver. If you've previously switched to using the database, you may switch back to using flat-files using this command:

php please seo:switch-to-file

You may also uninstall the Statamic Eloquent Driver if you don't need it for any other content:

composer remove statamic/eloquent-driver

Database

The process of switching from flat-files to a database is painless. All you need to do is run a few commands.

First, install the :

composer require statamic/eloquent-driver

Next, run the following command. It will update Advanced SEO's config file to use the Eloquent driver and copy and migrate the relevant database migrations. It will also give you the option to import existing data from flat-files into the database.

php please seo:switch-to-eloquent

The above command will not delete any Advanced SEO flat-files. You may do this yourself once you're satisfied with the migration.

Statamic Eloquent Driver