Skip to content

MajidMohammadian/translation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translation for laravel

This is a package for translating the contents of different Laravel projects.

Install via composer

Run the following command to pull in the latest version:

composer require jobmetric/translation

Add service provider

Add the service provider to the providers array in the config/app.php config file as follows:

'providers' => [

    ...

    JobMetric\Translation\TranslationServiceProvider::class,
]

Publish the config

Copy the config file from vendor/jobmetric/translation/config/config.php to config folder of your Laravel application and rename it to translation.php

Run the following command to publish the package config file:

php artisan vendor:publish --provider="JobMetric\Translation\TranslationServiceProvider" --tag="translation-config"

You should now have a config/translation.php file that allows you to configure the basics of this package.

Publish Migrations

You need to publish the migration to create the translations table:

php artisan vendor:publish --provider="JobMetric\Translation\TranslationServiceProvider" --tag="translation-migrations"

After that, you need to run migrations.

php artisan migrate

Documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%