CountryWithCustomLocaleKey
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 2
dl 0
loc 13
c 0
b 0
f 0
1
<?php
2
3
namespace Dimsav\Translatable\Test\Model;
4
5
use Dimsav\Translatable\Translatable;
6
use Illuminate\Database\Eloquent\Model as Eloquent;
7
8
class CountryWithCustomLocaleKey extends Eloquent
9
{
10
    use Translatable;
11
12
    public $table = 'countries';
13
    public $translatedAttributes = ['name'];
14
15
    /*
16
     * You can customize per model, which attribute will
17
     * be used to save the locale info into the database
18
     */
19
    public $localeKey = 'language_id';
20
}
21