soluzione-software/nova-translatable-field


README

Adds the ability to show and edit translated fields created with astrotomic/laravel-translatable package.

Installation and usage

composer require soluzione-software/nova-translatable-field
<?php

namespace App\Nova;

use Illuminate\Http\Request;
use Laravel\Nova\Fields\Text;
use SoluzioneSoftware\Nova\Fields\Translatable;

class User extends Resource
{
    // ...

    /**
     * Get the fields displayed by the resource.
     *
     * @param  Request  $request
     * @return array
     */
    public function fields(Request $request)
    {
        return [            
            Translatable::make(
                Text::make('Name')
            ),
        ];
    }

    // ...
}

Credits

Thanks to: