<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wiebenieuwenhuis / laravel-translatable-json example snippets
namespace App\Models;
...
use Wiebenieuwenhuis\LaravelTranslatableJson\HasJsonTranslations;
class Post extends Model
{
use HasJsonTranslations;
public $translatableJson = [
'content' => [
'title',
'content',
],
];
...