Verbs

Storage

By default, Events and States are stored in your database in the following tables:

1'events' => 'verb_events',
2'snapshots' => 'verb_snapshots',
3'state_events' => 'verb_state_events',

Serialization

When stored, they are serialized using the Symfony Serializer. This takes all the public properties on your objects and converts them to JSON, using a number of Normalizers.

Customization

Verbs ships with a number of default normalizers that should be perfect for the typical Laravel application. If you need to store more complex data, you may need to add your own normalizers, which you can do in config/verbs.php file. You may also change the default serializer context, table names, and your database connection there as well.

Database Connection

1'connections' => [
2 'events' => env('VERBS_EVENTS_CONNECTION'),
3 'snapshots' => env('VERBS_SNAPSHOT_CONNECTION'),
4 'state_events' => env('VERBS_STATE_EVENTS_CONNECTION'),
5],