From ec18961c97f943ad74932a09643c0389db35daa1 Mon Sep 17 00:00:00 2001 From: Ramiz Kongulov <33090344+kongulov@users.noreply.github.com> Date: Thu, 15 Oct 2020 14:46:37 +0400 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 94c72dd..0b3c1fc 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,22 @@ NovaTabTranslatable::make([ ]), ``` +* Replace field name +```php +NovaTabTranslatable::make([ + Text::make('Title')->rules('required'), +])->setTitle('Own Title'), +``` + +* If on the index and detail pages you want to turn off the tab and show it each as a row, use trait `TranslatableTabToRowTrait` in your resource +```php +class YourResource extends Resource +{ + use TranslatableTabToRowTrait; + ... +} +``` + ## Credits - [Ramiz Kongulov](https://github.com/kongulov)