• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visavi / rotor / 27500938451

14 Jun 2026 01:51PM UTC coverage: 16.652% (-0.003%) from 16.655%
27500938451

push

github

visavi
Сброс кеша модулей при деплое

0 of 1 new or added line in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

959 of 5759 relevant lines covered (16.65%)

2.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Console/Commands/ModuleLink.php
1
<?php
2

3
namespace App\Console\Commands;
4

5
use App\Models\Module;
6
use Illuminate\Console\Command;
7
use Symfony\Component\Console\Command\Command as SymfonyCommand;
8

9
class ModuleLink extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     */
14
    protected $signature = 'module:link';
15

16
    /**
17
     * The console command description.
18
     */
19
    protected $description = 'Create a modules links';
20

21
    /**
22
     * Execute the console command.
23
     */
24
    public function handle(): int
×
25
    {
26
        $modules = Module::query()->where('active', true)->get();
×
27

28
        foreach ($modules as $module) {
×
29
            $module->createSymlink();
×
30
        }
31

32
        // Сбрасываем кэш скана модулей, чтобы новый релиз подхватил
33
        // изменения в структуре (views, lang, routes, hooks и т.д.)
NEW
34
        clearCache(['modules', 'settings']);
×
35

UNCOV
36
        $this->info('Modules links created.');
×
37

38
        return SymfonyCommand::SUCCESS;
×
39
    }
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc