Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace App\Console\Commands; use App\Models\Album; use App\Models\Artist; use A..
Decoded Output download
<?php
namespace App\Console\Commands;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Playlist;
use App\Models\Song;
use Illuminate\Console\Command;
class ImportSearchableEntitiesCommand extends Command
{
private const SEARCHABLE_ENTITIES = [
Song::class,
Album::class,
Artist::class,
Playlist::class,
];
protected $signature = 'koel:search:import';
protected $description = 'Import all searchable entities with Scout';
public function handle(): int
{
foreach (self::SEARCHABLE_ENTITIES as $entity) {
if (!class_exists($entity)) {
continue;
}
$this->call('scout:import', ['model' => $entity]);
}
return self::SUCCESS;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Console\Commands;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Playlist;
use App\Models\Song;
use Illuminate\Console\Command;
class ImportSearchableEntitiesCommand extends Command
{
private const SEARCHABLE_ENTITIES = [
Song::class,
Album::class,
Artist::class,
Playlist::class,
];
protected $signature = 'koel:search:import';
protected $description = 'Import all searchable entities with Scout';
public function handle(): int
{
foreach (self::SEARCHABLE_ENTITIES as $entity) {
if (!class_exists($entity)) {
continue;
}
$this->call('scout:import', ['model' => $entity]);
}
return self::SUCCESS;
}
}
Function Calls
None |
Stats
MD5 | 85458d1d5a1ee97d80ba1362755a74d9 |
Eval Count | 0 |
Decode Time | 119 ms |