Skip to content

About

An xpb plugin that allows for easily configured created_by fields.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Created By

An xpb plugin for Pocketbase that allows for easily configured created_by fields.

Configure single relation fields to auth collections to be automatically set to the auth record of the user making the post request.

Installation

  1. Install XPB.
  2. Use the builder:
xpb build --with github.com/pocketbuilds/created_by@latest

Setup

  1. Create a single relation field to the auth collection.
  2. Add the field to the plugin config.
  3. Restart the pocketbase app.

Plugin Config

# pocketbuilds.toml

[created_by]
# Array of single relation fields to auth collections to
#   automatically set on record create.
#   - format: "<collection_name>.<field_name>"
fields = [
  "my_collection.created_by",
  "posts.authored_by",
  "messages.user_id",
  # etc...
]

About

An xpb plugin that allows for easily configured created_by fields.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages