Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Custom field types #24

Open
zcwilt opened this issue Nov 26, 2020 · 1 comment
Open

Custom field types #24

zcwilt opened this issue Nov 26, 2020 · 1 comment

Comments

@zcwilt
Copy link

zcwilt commented Nov 26, 2020

struggling to see how I can add my own custom field type.

@zcwilt
Copy link
Author

zcwilt commented Nov 26, 2020

sorry, should say my use case is that I have some fields that are translatable using
https://github.com/spatie/laravel-translatable

So for these I need to display multiple input fields based on the languages the app is set up to use.

While I realise that i could manually build using array fields, would be nice if I could just do

Field::make('Name')->translatable('name')->rules('required')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant