Skip to content

Commit 66d439f

Browse files
committed
docs: update README.md
1 parent ab68768 commit 66d439f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ return new class extends Migration {
3232
Schema::create('posts', function (Blueprint $table) {
3333
$table->id();
3434

35-
...
35+
// ...
3636

37-
DbTranslatableSchema::columns($table);
37+
$table->dbTranslatable();
38+
// OR
39+
$table->jsonTranslatable();
3840
});
3941
}
4042

@@ -53,6 +55,8 @@ And then all you need to do is add the `Translatable` implementation using the `
5355
class Post extends Model implements Translatable
5456
{
5557
use IsDbTranslatable;
58+
// OR
59+
use IsJsonTranslatable;
5660

5761
...
5862
```

0 commit comments

Comments
 (0)