Pharaonic
Loading...
Translatable

# Why Translatable?

Translatable is a package that helps to make a multilingual models for Laravel.

# Installation

Install the latest version using Composer.

1composer require pharaonic/laravel-translatable

# Creating Model

You can generate your Translatable Model with migrations, just with this command :

1php artisan make:translatable Post --migrations

And this is the result :

1// Models
2App\Models\Post
3App\Models\PostTranslation
4
5// Migrations
62021_05_31_121627_create_posts_table.php
72021_05_31_121628_create_post_translations_table.php