Php Laravel Voyager如何翻译自定义字段?
如何翻译自定义字段? 我将一个自定义字段Php Laravel Voyager如何翻译自定义字段?,php,laravel,voyager,Php,Laravel,Voyager,如何翻译自定义字段? 我将一个自定义字段id\u post添加到表categories中,并用BREAD显示它。 但是翻译不包括在表翻译中 namespace App; use Illuminate\Database\Eloquent\Model; use TCG\Voyager\Traits\Translatable; class Category extends Model { use Translatable; protected $translatable = ['na
id\u post
添加到表categories
中,并用BREAD显示它。
但是翻译不包括在表翻译中
namespace App;
use Illuminate\Database\Eloquent\Model;
use TCG\Voyager\Traits\Translatable;
class Category extends Model
{
use Translatable;
protected $translatable = ['name', 'slug','id_post'];
}