HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux Bradford-Sitios 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: www-data (33)
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/dtw.bradford/database/seeders/PermissionsSeeder.php
<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;

class PermissionsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $now = Carbon::now();

        DB::table('permissions')->insert([
            [
                'permission'   => 'Crear Perfiles',
                'description'  => 'Permite crear perfiles',
                'order'        => 2,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'PERFILES',
                'code'         => 'ADD_PROFILES',
            ],
            [
                'permission'   => 'Editar Perfiles',
                'description'  => 'Permite editar perfiles',
                'order'        => 3,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'PERFILES',
                'code'         => 'EDIT_PROFILES',
            ],
            [
                'permission'   => 'Eliminar Perfiles',
                'description'  => 'Permite eliminar perfiles',
                'order'        => 4,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'PERFILES',
                'code'         => 'DEL_PROFILES',
            ],
            [
                'permission'   => 'Listar Perfiles',
                'description'  => 'Permite visualizar listado de perfiles',
                'order'        => 1,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'PERFILES',
                'code'         => 'LIST_PROFILES',
            ],
            [
                'permission'   => 'Asignar permisos a Perfil',
                'description'  => 'Permite asignar y quitar permisos a los perfiles',
                'order'        => 5,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'PERFILES',
                'code'         => 'EDIT_PERMISSIONS',
            ],
            [
                'permission'   => 'Crear Usuarios',
                'description'  => 'Permite crear usuarios',
                'order'        => 2,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'USUARIOS',
                'code'         => 'ADD_USERS',
            ],
            [
                'permission'   => 'Editar Usuarios',
                'description'  => 'Permite editar usuarios',
                'order'        => 3,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'USUARIOS',
                'code'         => 'EDIT_USERS',
            ],
            [
                'permission'   => 'Eliminar Usuarios',
                'description'  => 'Permite eliminar usuarios',
                'order'        => 4,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'USUARIOS',
                'code'         => 'DEL_USERS',
            ],
            [
                'permission'   => 'Listar Usuarios',
                'description'  => 'Permite visualizar listado de usuarios',
                'order'        => 1,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'USUARIOS',
                'code'         => 'LIST_USERS',
            ],
            [
                'permission'   => 'Crear Cargas',
                'description'  => 'Permite crear cargas de archivos',
                'order'        => 2,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'CARGA ARCHIVOS',
                'code'         => 'ADD_UPLOADS',
            ],
            [
                'permission'   => 'Ver Cargas',
                'description'  => 'Permite ver cargas de archivos',
                'order'        => 3,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'CARGA ARCHIVOS',
                'code'         => 'VIEW_UPLOADS',
            ],
            [
                'permission'   => 'Listar Cargas',
                'description'  => 'Permite visualizar listado de cargas de archivos',
                'order'        => 1,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'CARGA ARCHIVOS',
                'code'         => 'LIST_UPLOADS',
            ],
            [
                'permission'   => 'Listar Integraciones',
                'description'  => 'Permite visualizar listado de logs de integraciones',
                'order'        => 1,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'LOG INTEGRACIONES',
                'code'         => 'LIST_INTEGRATIONS',
            ],
            [
                'permission'   => 'Ver Integraciones',
                'description'  => 'Permite ver logs de integraciones',
                'order'        => 2,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'LOG INTEGRACIONES',
                'code'         => 'VIEW_INTEGRATIONS',
            ],
            [
                'permission'   => 'Ver Documentación API',
                'description'  => 'Permite ver Documentación API',
                'order'        => 1,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'DOCUMENTACIÓN API',
                'code'         => 'VIEW_API_DOCS',
            ],
            [
                'permission'   => 'Ver Diccionario de Datos',
                'description'  => 'Permite ver Diccionario de Datos',
                'order'        => 1,
                'status'       => 1,
                'created_at'   => $now,
                'deleted'      => 0,
                'category'     => 'DICCIONARIO DE DATOS',
                'code'         => 'VIEW_DATA_DICTIONARY',
            ]
        ]);
    }
}