remove id from language_strings table

This commit is contained in:
Milos Holba
2021-03-02 16:58:38 +01:00
parent 63ba4d3a1d
commit 1536af7a5b
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ class Language extends Model
protected static function booted()
{
static::creating(function($language) {
$language->id = Str::uuid();
static::creating(function($model) {
$model->id = Str::uuid();
});
}
+3 -1
View File
@@ -8,7 +8,9 @@ class LanguageString extends Model
{
public $timestamps = false;
// public $incrementing = false;
public $primaryKey = null;
public $incrementing = false;
protected $fillable = ['value', 'language_id' ,'key', 'lang'];