. */ namespace Modules\DDT; use Common\SimpleModelTrait; use Illuminate\Database\Eloquent\Model; use Traits\RecordTrait; class Porto extends Model { use SimpleModelTrait; use RecordTrait; protected $table = 'dt_porto'; protected static $translated_fields = [ 'title', ]; public function ddt() { return $this->hasMany(DDT::class, 'idporto'); } public function getModuleAttribute() { return 'Porto'; } public static function getTranslatedFields() { return self::$translated_fields; } }