- Nuevo modulo de historial de cambios (ServicioHistorial) - Observer para tracking automatico de cambios en servicios - Correccion de variables auxiliar en ServiciosController - Actualizacion de configuraciones y migraciones - Endpoint para consultar historial de cambios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
77 lines
2.1 KiB
PHP
Executable File
77 lines
2.1 KiB
PHP
Executable File
<?php
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class RolesTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('roles')->insert([
|
|
|
|
[
|
|
'slug' => 'Atención a cliente',
|
|
'name' => 'Atención a cliente',
|
|
'movil' => 0,
|
|
'web' => 1,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'slug' => 'Administradores',
|
|
'name' => 'Administradores',
|
|
'movil' => 0,
|
|
'web' => 1,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'slug' => 'Supervisor de operadores',
|
|
'name' => 'Supervisor de operadores',
|
|
'movil' => 1,
|
|
'web' => 1,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'slug' => 'Asesor de operaciones',
|
|
'name' => 'Asesor de operaciones',
|
|
'movil' => 1,
|
|
'web' => 0,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'slug' => 'Gerencial',
|
|
'name' => 'Gerencial',
|
|
'movil' => 0,
|
|
'web' => 1,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'slug' => 'Auxiliar de operaciones',
|
|
'name' => 'Auxiliar de operaciones',
|
|
'movil' => 0,
|
|
'web' => 0,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
]);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|