Looking to hire Laravel developers? Try LaraJobs

laravel-translatable maintained by spamacom

Description
A Laravel package for multilingual models | upgraded By Mouhammad Alali
Last update
2023/06/05 14:18 (dev-main)
License
Downloads
68

Comments
comments powered by Disqus

Introduction

Latest Version MIT License Offset Earth Larabelles

GitHub Workflow Status StyleCI Codecov Coverage Total Downloads GitBook

If you want to store translations of your models into the database, this package is for you.

This is a Laravel package for translatable models. Its goal is to remove the complexity in retrieving and storing multilingual model instances. With this package you write less code, as the translations are being fetched/saved when you fetch/save your instance.

The full documentation can be found at GitBook.

Installation

composer require spamacom/laravel-translatable

Quick Example

Model()->whereTranslationFullText('name','any word',['mode'=>'boolean'])->orWhereTranslationFullText('name','any word',['mode'=>'boolean'])

Visit the totorial for more details how you can use fulltext search function Boolean Full-Text Searches.