Skip to content

Export form submissions independently of forms #498

@duncanmcclean

Description

@duncanmcclean

Description

It should be possible to export form submissions independently of forms.

For example: I store forms in flat files, but form submissions in the database. Currently, when I run php please eloquent:export-forms, I get an error:

   Illuminate\Contracts\Container\BindingResolutionException 

  Target class [statamic.eloquent.forms.model] does not exist.

  at vendor/laravel/framework/src/Illuminate/Container/Container.php:1163
    1159▕ 
    1160▕         try {
    1161▕             $reflector = new ReflectionClass($concrete);
    1162▕         } catch (ReflectionException $e) {
  ➜ 1163▕             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
    1164▕         }
    1165▕ 
    1166▕         // If the type is not instantiable, the developer is attempting to resolve
    1167▕         // an abstract type such as an Interface or Abstract Class and there is

      +29 vendor frames 

  30  please:18
      Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

You can workaround it right now by moving forms to the database via php please install:eloquent-driver, then running the export command again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions