HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/demo-telemedicina.teky.com.co/database/seeds/TreatmentTableSeeder.php
<?php

use Illuminate\Database\Seeder;
use Telemedicina\Treatment;

class TreatmentTableSeeder extends Seeder
{
    protected $ES = 'es';
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        if(config('app.locale') == $this->ES){
            Treatment::create(["id" => 1, "name" => 'Aislamiento en casa', "active" => true, "recommendation" => "Quedarse en casa, evitar contacto con personas, lavarse las manos repetidamente."]);
            Treatment::create(["id" => 2, "name" => 'Hospitalización', "active" => true, "recommendation" => "Al ingreso, comunique al médico o a la enfermera si toma medicamentos, si tiene marcapasos, utiliza prótesis dental, gafas o audífono. \n El baño diario es importante para su recuperación, ayuda a prevenir infecciones. \n En el Hospital, está prohibido el consumo de alcohol y de sustancias psicoactivas"]);
        }else{
            Treatment::create(["id" => 1, "name" => 'Home insulation', "active" => true, "recommendation" => "Stay home, avoid contact with people, wash your hands repeatedly."]);
            Treatment::create(["id" => 2, "name" => 'Hospitalization', "active" => true, "recommendation" => "On admission, tell your doctor or nurse if you take medication, have a pacemaker, wear dentures, glasses or hearing aids. \n Daily bathing is important for your recovery, it helps prevent infection. \n In the Hospital, the use of alcohol and psychoactive substances is prohibited."]);
        }
    }
}