mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
remove id from language_strings table
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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'];
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ class CreateLanguageStrings extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('language_strings', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->uuid('language_id');
|
||||
$table->string('key');
|
||||
$table->longText('value');
|
||||
|
||||
Reference in New Issue
Block a user