관리-도구
편집 파일: SettingTranslation.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class SettingTranslation extends Model { protected $fillable = ['value']; /** * The table associated with the model. * * @var string */ protected $table = 'setting_translations'; protected static function booted() { static::creating(function ($translation) { $translation->locale = get_language(); }); } }