Skip to content

Commit f41a923

Browse files
committed
Update package name
1 parent 2253f01 commit f41a923

17 files changed

+500
-561
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# tarjama
1+
# translatable
22

33
It's a Laravel model columns translation manager
44

55
## Current working model
66

7-
![Laravel Tarjama current working model](/images/current_working_model.png)
7+
![Laravel Translatable current working model](/images/current_working_model.png)
88

99
## Installation
1010

1111
You can install the package via composer:
1212

1313
```bash
14-
composer require laravelarab/tarjama
14+
composer require fevrok/laravel-translatable
1515
```
1616

1717
If you have Laravel 5.5 and up The package will automatically register itself.
1818

1919
else you have to add the service provider to app/config/app.php
2020

2121
```php
22-
LaravelArab\Tarjama\TarjamaServiceProvider::class,
22+
Fevrok\Translatable\TranslatableServiceProvider::class,
2323
```
2424

2525
publish config file and migration.
2626

2727
```bash
28-
php artisan vendor:publish --provider="LaravelArab\Tarjama\TarjamaServiceProvider"
28+
php artisan vendor:publish --provider="Fevrok\Translatable\TranslatableServiceProvider"
2929
```
3030

3131
This is the contents of the published file:
@@ -52,13 +52,13 @@ php artisan migrate
5252

5353
The required steps to make a model translatable are:
5454

55-
- Just use the `LaravelArab\Tarjama\Translatable` trait.
55+
- Just use the `Fevrok\Translatable\Translatable` trait.
5656

5757
Here's an example of a prepared model:
5858

5959
```php
6060
use Illuminate\Database\Eloquent\Model;
61-
use LaravelArab\Tarjama\Translatable;
61+
use Fevrok\Translatable\Translatable;
6262

6363
class Item extends Model
6464
{
@@ -82,7 +82,7 @@ To get started, publish the assets again this will create new migration update t
8282

8383
CustomTranslation.php
8484
```php
85-
class CustomTranslation extends \LaravelArab\Tarjama\Models\Translation
85+
class CustomTranslation extends \Fevrok\Translatable\Models\Translation
8686
{
8787
protected $table = 'custom_translations';
8888
}
@@ -92,7 +92,7 @@ Add `$translations_model` property and give it your custom translations class.
9292

9393
```php
9494
use Illuminate\Database\Eloquent\Model;
95-
use LaravelArab\Tarjama\Translatable;
95+
use Fevrok\Translatable\Translatable;
9696

9797
class Item extends Model
9898
{

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "laravelarab/tarjama",
3-
"description": "It's a laravel model columns translation manager",
2+
"name": "fevrok/laravel-translatable",
3+
"description": "This package allows you to translate your models fields.",
44
"license": "MIT",
55
"keywords": [
66
"laravel",
@@ -10,10 +10,10 @@
1010
"model",
1111
"i8n",
1212
"translation",
13-
"tarjama",
13+
"translatable",
1414
"multilingual"
1515
],
16-
"homepage": "https://github.com/LaravelArab/tarjama",
16+
"homepage": "https://github.com/fevrok/laravel-translatable",
1717
"authors": [
1818
{
1919
"name": "Abdellah Chadidi",
@@ -34,18 +34,18 @@
3434
},
3535
"autoload": {
3636
"psr-4": {
37-
"LaravelArab\\Tarjama\\": "src"
37+
"Fevrok\\Translatable\\": "src"
3838
}
3939
},
4040
"autoload-dev": {
4141
"psr-4": {
42-
"LaravelArab\\Tarjama\\Tests\\": "tests"
42+
"Fevrok\\Translatable\\Tests\\": "tests"
4343
}
4444
},
4545
"extra": {
4646
"laravel": {
4747
"providers": [
48-
"LaravelArab\\Tarjama\\TarjamaServiceProvider"
48+
"Fevrok\\Translatable\\TranslatableServiceProvider"
4949
]
5050
}
5151
},
File renamed without changes.

src/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace LaravelArab\Tarjama;
3+
namespace Fevrok\Translatable;
44

55
use Illuminate\Support\Collection as IlluminateCollection;
66

Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace LaravelArab\Tarjama\Facades;
3+
namespace Fevrok\Translatable\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

7-
class Tarjama extends Facade
7+
class Translatable extends Facade
88
{
99
/**
1010
* Get the registered name of the component.
@@ -13,6 +13,6 @@ class Tarjama extends Facade
1313
*/
1414
protected static function getFacadeAccessor()
1515
{
16-
return 'tarjama';
16+
return 'translatable';
1717
}
1818
}

0 commit comments

Comments
 (0)