repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/TidyLibraryCommand.php | app/Console/Commands/TidyLibraryCommand.php | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class TidyLibraryCommand extends Command
{
protected $signature = 'koel:tidy';
protected $hidden = true;
public function handle(): int
{
$this->warn('koel:tidy has been renamed. Use koel:prune instead.');
return s... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/DeactivateLicenseCommand.php | app/Console/Commands/DeactivateLicenseCommand.php | <?php
namespace App\Console\Commands;
use App\Services\License\Contracts\LicenseServiceInterface;
use Illuminate\Console\Command;
use Throwable;
class DeactivateLicenseCommand extends Command
{
protected $signature = 'koel:license:deactivate';
protected $description = 'Deactivate the currently active Koel Pl... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/CollectTagsCommand.php | app/Console/Commands/CollectTagsCommand.php | <?php
namespace App\Console\Commands;
use App\Models\Song;
use Illuminate\Console\Command;
class CollectTagsCommand extends Command
{
protected $signature = 'koel:tags:collect {tag*}';
protected $description = 'Collect additional tags from existing songs';
private const ALL_TAGS = [
'title',
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/ActivateLicenseCommand.php | app/Console/Commands/ActivateLicenseCommand.php | <?php
namespace App\Console\Commands;
use App\Services\License\Contracts\LicenseServiceInterface;
use Illuminate\Console\Command;
use Throwable;
class ActivateLicenseCommand extends Command
{
protected $signature = 'koel:license:activate {key : The license key to activate.}';
protected $description = 'Activa... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/ScanCommand.php | app/Console/Commands/ScanCommand.php | <?php
namespace App\Console\Commands;
use App\Enums\ScanEvent;
use App\Models\Setting;
use App\Models\User;
use App\Services\Scanners\DirectoryScanner;
use App\Services\Scanners\WatchRecordScanner;
use App\Values\Scanning\ScanConfiguration;
use App\Values\Scanning\ScanResult;
use App\Values\WatchRecord\InotifyWatchRe... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/FetchArtworkCommand.php | app/Console/Commands/FetchArtworkCommand.php | <?php
namespace App\Console\Commands;
use App\Builders\AlbumBuilder;
use App\Builders\ArtistBuilder;
use App\Models\Album;
use App\Models\Artist;
use App\Services\EncyclopediaService;
use App\Services\MusicBrainzService;
use App\Services\SpotifyService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\C... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/SyncPodcastsCommand.php | app/Console/Commands/SyncPodcastsCommand.php | <?php
namespace App\Console\Commands;
use App\Models\Podcast;
use App\Services\PodcastService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;
use Throwable;
class SyncPodcastsCommand extends Command
{
protected $signature = 'koel:podcasts:sync';
protected $description = 'Synchronize podc... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/ImportSearchableEntitiesCommand.php | app/Console/Commands/ImportSearchableEntitiesCommand.php | <?php
namespace App\Console\Commands;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Playlist;
use App\Models\Podcast;
use App\Models\Song;
use Illuminate\Console\Command;
class ImportSearchableEntitiesCommand extends Command
{
private const SEARCHABLE_ENTITIES = [
Song::class,
Album... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/CheckLicenseStatusCommand.php | app/Console/Commands/CheckLicenseStatusCommand.php | <?php
namespace App\Console\Commands;
use App\Enums\LicenseStatus;
use App\Models\License;
use App\Services\License\Contracts\LicenseServiceInterface;
use Illuminate\Console\Command;
use Throwable;
class CheckLicenseStatusCommand extends Command
{
protected $signature = 'koel:license:status';
protected $desc... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/PruneLibraryCommand.php | app/Console/Commands/PruneLibraryCommand.php | <?php
namespace App\Console\Commands;
use App\Services\LibraryManager;
use Illuminate\Console\Command;
class PruneLibraryCommand extends Command
{
protected $signature = 'koel:prune {--dry-run}';
protected $description = 'Remove empty artists and albums';
public function __construct(private readonly Lib... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/ReleaseCommand.php | app/Console/Commands/ReleaseCommand.php | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Process;
use PHLAK\SemVer\Version;
use Throwable;
use function Laravel\Prompts\error;
use function Laravel\Prompts\info;
use function Laravel\Prompts\note;
use function Laravel\Pr... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/ExtractFoldersCommand.php | app/Console/Commands/ExtractFoldersCommand.php | <?php
namespace App\Console\Commands;
use App\Models\Setting;
use App\Models\Song;
use App\Services\MediaBrowser;
use Illuminate\Console\Command;
use Symfony\Component\Console\Helper\ProgressBar;
class ExtractFoldersCommand extends Command
{
protected $signature = 'koel:extract-folders';
protected $descripti... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/CleanUpTempFilesCommand.php | app/Console/Commands/CleanUpTempFilesCommand.php | <?php
namespace App\Console\Commands;
use Carbon\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
class CleanUpTempFilesCommand extends Command
{
protected $signature = 'koel:clean-up-temp-files {--age=1440 : The age of temporary files to remove in minutes}';
protected $descriptio... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/InitCommand.php | app/Console/Commands/InitCommand.php | <?php
namespace App\Console\Commands;
use App\Console\Commands\Concerns\AskForPassword;
use App\Exceptions\InstallationFailedException;
use App\Models\Setting;
use App\Models\User;
use Illuminate\Console\Command;
use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facad... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Admin/SetUserRoleCommand.php | app/Console/Commands/Admin/SetUserRoleCommand.php | <?php
namespace App\Console\Commands\Admin;
use App\Enums\Acl\Role;
use App\Repositories\UserRepository;
use Illuminate\Console\Command;
use function Laravel\Prompts\select;
class SetUserRoleCommand extends Command
{
protected $signature = "koel:admin:set-user-role {email : The user's email}";
protected $de... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Admin/ChangePasswordCommand.php | app/Console/Commands/Admin/ChangePasswordCommand.php | <?php
namespace App\Console\Commands\Admin;
use App\Console\Commands\Concerns\AskForPassword;
use App\Repositories\UserRepository;
use Illuminate\Console\Command;
use Illuminate\Contracts\Hashing\Hasher as Hash;
class ChangePasswordCommand extends Command
{
use AskForPassword;
protected $signature = "koel:a... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Storage/StorageCommand.php | app/Console/Commands/Storage/StorageCommand.php | <?php
namespace App\Console\Commands\Storage;
use App\Facades\License;
use App\Models\Setting;
use Illuminate\Console\Command;
class StorageCommand extends Command
{
protected $signature = 'koel:storage';
protected $description = 'Set up and configure Koel’s storage';
public function handle(): int
{... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Storage/SetupDropboxStorageCommand.php | app/Console/Commands/Storage/SetupDropboxStorageCommand.php | <?php
namespace App\Console\Commands\Storage;
use App\Facades\License;
use App\Services\SongStorages\DropboxStorage;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Http;
use Jackiedo\DotenvEditor\DotenvEditor;
use Throwable;
class SetupDropboxStorageCommand ext... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Storage/SetupS3StorageCommand.php | app/Console/Commands/Storage/SetupS3StorageCommand.php | <?php
namespace App\Console\Commands\Storage;
use App\Facades\License;
use App\Services\SongStorages\S3CompatibleStorage;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Jackiedo\DotenvEditor\DotenvEditor;
use Throwable;
class SetupS3StorageCommand extends Command
{
protected $signatu... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Storage/SetupLocalStorageCommand.php | app/Console/Commands/Storage/SetupLocalStorageCommand.php | <?php
namespace App\Console\Commands\Storage;
use App\Models\Setting;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\File;
use Jackiedo\DotenvEditor\DotenvEditor;
class SetupLocalStorageCommand extends Command
{
protected $signature = 'koel:storage:local';
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/Concerns/AskForPassword.php | app/Console/Commands/Concerns/AskForPassword.php | <?php
namespace App\Console\Commands\Concerns;
/**
* @method void error($message, $verbosity = null)
* @method mixed secret($message, $fallback = true)
*/
trait AskForPassword
{
private function askForPassword(): string
{
do {
$password = $this->secret('Your desired password');
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/PlayableType.php | app/Enums/PlayableType.php | <?php
namespace App\Enums;
enum PlayableType: string
{
case SONG = 'song';
case PODCAST_EPISODE = 'episode';
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/PermissionableResourceType.php | app/Enums/PermissionableResourceType.php | <?php
namespace App\Enums;
use App\Models\Album;
use App\Models\Artist;
use App\Models\RadioStation;
use App\Models\User;
enum PermissionableResourceType: string
{
case ALBUM = 'album';
case ARTIST = 'artist';
case RADIO_STATION = 'radio-station';
case USER = 'user';
/** @return class-string<Alb... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/EmbeddableType.php | app/Enums/EmbeddableType.php | <?php
namespace App\Enums;
use App\Http\Resources\AlbumResource;
use App\Http\Resources\ArtistResource;
use App\Http\Resources\PlaylistResource;
use App\Http\Resources\SongResource;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Playlist;
use App\Models\Song;
use Illuminate\Http\Resources\Json\JsonResour... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/SmartPlaylistModel.php | app/Enums/SmartPlaylistModel.php | <?php
namespace App\Enums;
enum SmartPlaylistModel: string
{
case ALBUM_NAME = 'album.name';
case ARTIST_NAME = 'artist.name';
case DATE_ADDED = 'created_at';
case DATE_MODIFIED = 'updated_at';
case GENRE = 'genre';
case LAST_PLAYED = 'interactions.last_played_at';
case LENGTH = 'length';
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/SongStorageType.php | app/Enums/SongStorageType.php | <?php
namespace App\Enums;
use App\Facades\License;
enum SongStorageType: string
{
case S3 = 's3';
case S3_LAMBDA = 's3-lambda';
case DROPBOX = 'dropbox';
case SFTP = 'sftp';
case LOCAL = '';
public function supported(): bool
{
return ($this === self::LOCAL || $this === self::S3_... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/DoctorResult.php | app/Enums/DoctorResult.php | <?php
namespace App\Enums;
enum DoctorResult
{
case SUCCESS;
case ERROR;
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/ScanResultType.php | app/Enums/ScanResultType.php | <?php
namespace App\Enums;
enum ScanResultType: string
{
case SUCCESS = 'Success';
case ERROR = 'Error';
case SKIPPED = 'Skipped';
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/Placement.php | app/Enums/Placement.php | <?php
namespace App\Enums;
enum Placement: string
{
case BEFORE = 'before';
case AFTER = 'after';
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/ScanEvent.php | app/Enums/ScanEvent.php | <?php
namespace App\Enums;
enum ScanEvent
{
case PATHS_GATHERED;
case SCAN_PROGRESS;
case SCAN_COMPLETED;
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/SmartPlaylistOperator.php | app/Enums/SmartPlaylistOperator.php | <?php
namespace App\Enums;
enum SmartPlaylistOperator: string
{
case IS = 'is';
case IS_NOT = 'isNot';
case CONTAINS = 'contains';
case NOT_CONTAIN = 'notContain';
case IS_BETWEEN = 'isBetween';
case IS_GREATER_THAN = 'isGreaterThan';
case IS_LESS_THAN = 'isLessThan';
case BEGINS_WITH ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/FavoriteableType.php | app/Enums/FavoriteableType.php | <?php
namespace App\Enums;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Contracts\Favoriteable;
use App\Models\Podcast;
use App\Models\RadioStation;
use App\Models\Song;
use Illuminate\Database\Eloquent\Model;
enum FavoriteableType: string
{
case PLAYABLE = 'playable';
case ALBUM = 'album';
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/LicenseStatus.php | app/Enums/LicenseStatus.php | <?php
namespace App\Enums;
enum LicenseStatus
{
case VALID;
case INVALID;
case NO_LICENSE;
case UNKNOWN;
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/Acl/Role.php | app/Enums/Acl/Role.php | <?php
namespace App\Enums\Acl;
use App\Exceptions\KoelPlusRequiredException;
use App\Facades\License;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection;
enum Role: string implements Arrayable
{
case ADMIN = 'admin';
case MANAGER = 'manager';
case USER = 'user';
public fun... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Enums/Acl/Permission.php | app/Enums/Acl/Permission.php | <?php
namespace App\Enums\Acl;
enum Permission: string
{
case MANAGE_SETTINGS = 'manage settings'; // media path, plus edition, SSO, etc.
case MANAGE_USERS = 'manage users'; // create, edit, delete users
case MANAGE_SONGS = 'manage songs'; // upload, edit, delete
case MANAGE_RADIO_STATIONS = 'manage r... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/SongZipArchive.php | app/Models/SongZipArchive.php | <?php
namespace App\Models;
use App\Facades\Download;
use App\Helpers\Ulid;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use RuntimeException;
use ZipArchive;
class SongZipArchive
{
private ZipArchive $archive;
private string $path;
/**
* Names of the files in the archive
* F... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Transcode.php | app/Models/Transcode.php | <?php
namespace App\Models;
use App\Enums\SongStorageType;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illu... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Interaction.php | app/Models/Interaction.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
/**
* @property int $play_count
* @property Song $song
* @property User $user
* @property int $id
* @pro... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/PlaylistCollaborationToken.php | app/Models/PlaylistCollaborationToken.php | <?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property string $token
* @property Carbon $created_at
* @prop... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/RadioStation.php | app/Models/RadioStation.php | <?php
namespace App\Models;
use App\Builders\RadioStationBuilder;
use App\Models\Concerns\MorphsToFavorites;
use App\Models\Contracts\Favoriteable;
use App\Models\Contracts\Permissionable;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Concerns\HasUlids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Artist.php | app/Models/Artist.php | <?php
namespace App\Models;
use App\Builders\ArtistBuilder;
use App\Facades\License;
use App\Facades\Util;
use App\Models\Concerns\MorphsToEmbeds;
use App\Models\Concerns\MorphsToFavorites;
use App\Models\Concerns\SupportsDeleteWhereValueNotIn;
use App\Models\Contracts\Embeddable;
use App\Models\Contracts\Favoriteabl... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Theme.php | app/Models/Theme.php | <?php
namespace App\Models;
use App\Casts\ThemePropertiesCast;
use App\Values\Theme\ThemeProperties;
use Illuminate\Database\Eloquent\Concerns\HasUlids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @propert... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Organization.php | app/Models/Organization.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Concerns\HasUlids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Carbon;
/**
* @proper... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use App\Builders\UserBuilder;
use App\Casts\UserPreferencesCast;
use App\Enums\Acl\Role as RoleEnum;
use App\Exceptions\UserAlreadySubscribedToPodcastException;
use App\Facades\License;
use App\Models\Contracts\Permissionable;
use App\Values\User\UserPreferences;
use Carbon\Carbon;
use Ill... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Playlist.php | app/Models/Playlist.php | <?php
namespace App\Models;
use App\Casts\SmartPlaylistRulesCast;
use App\Facades\License as LicenseFacade;
use App\Models\Concerns\MorphsToEmbeds;
use App\Models\Contracts\Embeddable;
use App\Models\Song as Playable;
use App\Values\SmartPlaylist\SmartPlaylistRuleGroupCollection;
use Carbon\Carbon;
use Illuminate\Dat... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Embed.php | app/Models/Embed.php | <?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Concerns\HasUlids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
/**
* @property ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Song.php | app/Models/Song.php | <?php
namespace App\Models;
use App\Builders\SongBuilder;
use App\Casts\Podcast\EpisodeMetadataCast;
use App\Casts\SongLyricsCast;
use App\Casts\SongStorageCast;
use App\Casts\SongTitleCast;
use App\Enums\PlayableType;
use App\Enums\SongStorageType;
use App\Models\Concerns\MorphsToEmbeds;
use App\Models\Concerns\Morp... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Genre.php | app/Models/Genre.php | <?php
namespace App\Models;
use App\Builders\GenreBuilder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Laravel\Scout\Searchable;
/**
* @property int $id
* @property string $public_id
* @property string... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Podcast.php | app/Models/Podcast.php | <?php
namespace App\Models;
use App\Builders\PodcastBuilder;
use App\Casts\Podcast\CategoriesCast;
use App\Casts\Podcast\PodcastMetadataCast;
use App\Models\Concerns\MorphsToFavorites;
use App\Models\Contracts\Favoriteable;
use App\Models\Song as Episode;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/License.php | app/Models/License.php | <?php
namespace App\Models;
use App\Casts\EncryptedValueCast;
use App\Casts\LicenseInstanceCast;
use App\Casts\LicenseMetaCast;
use App\Values\License\LicenseInstance;
use App\Values\License\LicenseMeta;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\Ha... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Favorite.php | app/Models/Favorite.php | <?php
namespace App\Models;
use App\Models\Contracts\Favoriteable;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
/**
* @property Carbon $creat... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Folder.php | app/Models/Folder.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Belon... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/QueueState.php | app/Models/QueueState.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property array<string> $song_ids
* @property ?string $current_song_id
* @property int $playback_position
* @property User $user
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/PlaylistFolder.php | app/Models/PlaylistFolder.php | <?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\E... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Setting.php | app/Models/Setting.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\Auditable;
use OwenIt\Auditing\Contracts\Auditable as AuditableContract;
/**
* @property string $key
* @property mixed $value
*
* @method static self find(string $key)
*... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/PodcastUserPivot.php | app/Models/PodcastUserPivot.php | <?php
namespace App\Models;
use App\Casts\Podcast\PodcastStateCast;
use App\Values\Podcast\PodcastState;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Relations\Pivot;
/**
* @property Carbon $created_at
* @property Carbon $updated_at
* @property PodcastState $state
*/
class PodcastUserPivot extends Pivot
{... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Album.php | app/Models/Album.php | <?php
namespace App\Models;
use App\Builders\AlbumBuilder;
use App\Models\Concerns\MorphsToEmbeds;
use App\Models\Concerns\MorphsToFavorites;
use App\Models\Concerns\SupportsDeleteWhereValueNotIn;
use App\Models\Contracts\Embeddable;
use App\Models\Contracts\Favoriteable;
use App\Models\Contracts\Permissionable;
use ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Contracts/Embeddable.php | app/Models/Contracts/Embeddable.php | <?php
namespace App\Models\Contracts;
use Illuminate\Database\Eloquent\Relations\MorphMany;
/**
* @property-read string $id
*/
interface Embeddable
{
public function embeds(): MorphMany;
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Contracts/Favoriteable.php | app/Models/Contracts/Favoriteable.php | <?php
namespace App\Models\Contracts;
use Illuminate\Database\Eloquent\Relations\MorphMany;
/**
* @property string $id
* @property bool $favorite
*/
interface Favoriteable
{
public function favorites(): MorphMany;
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Contracts/Permissionable.php | app/Models/Contracts/Permissionable.php | <?php
namespace App\Models\Contracts;
interface Permissionable
{
public static function getPermissionableIdentifier(): string;
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Concerns/MorphsToFavorites.php | app/Models/Concerns/MorphsToFavorites.php | <?php
namespace App\Models\Concerns;
use App\Models\Favorite;
use Illuminate\Database\Eloquent\Relations\MorphMany;
trait MorphsToFavorites
{
public function favorites(): MorphMany
{
return $this->morphMany(Favorite::class, 'favoriteable');
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Concerns/SupportsDeleteWhereValueNotIn.php | app/Models/Concerns/SupportsDeleteWhereValueNotIn.php | <?php
namespace App\Models\Concerns;
use Closure;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\DB;
/**
* With reference to GitHub issue #463.
* MySQL and PostgresSQL seem to have a limit of 2^16-1 (65535) elements in an IN statement.
* This trait provides a method as a workaround to th... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Models/Concerns/MorphsToEmbeds.php | app/Models/Concerns/MorphsToEmbeds.php | <?php
namespace App\Models\Concerns;
use App\Models\Embed;
use Illuminate\Database\Eloquent\Relations\MorphMany;
trait MorphsToEmbeds
{
public function embeds(): MorphMany
{
return $this->morphMany(Embed::class, 'embeddable');
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/SettingRepository.php | app/Repositories/SettingRepository.php | <?php
namespace App\Repositories;
use App\Models\Setting;
/** @extends Repository<Setting> */
class SettingRepository extends Repository
{
/** @return array<mixed> */
public function getAllAsKeyValueArray(): array
{
return $this->modelClass::query()->pluck('value', 'key')->toArray();
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/ArtistRepository.php | app/Repositories/ArtistRepository.php | <?php
namespace App\Repositories;
use App\Models\Artist;
use App\Models\User;
use App\Repositories\Contracts\ScoutableRepository;
use Illuminate\Contracts\Pagination\Paginator;
use Illuminate\Database\Eloquent\Collection;
/**
* @extends Repository<Artist>
* @implements ScoutableRepository<Artist>
*/
class ArtistR... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/ThemeRepository.php | app/Repositories/ThemeRepository.php | <?php
namespace App\Repositories;
use App\Models\Theme;
use App\Models\User;
use Illuminate\Database\Eloquent\Collection;
/**
* @extends Repository<Theme>
*/
class ThemeRepository extends Repository
{
/** @return Collection<Theme>|array<array-key, Theme> */
public function getAllByUser(User $user): Collect... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/RadioStationRepository.php | app/Repositories/RadioStationRepository.php | <?php
namespace App\Repositories;
use App\Models\Podcast;
use App\Models\RadioStation;
use App\Models\User;
use App\Repositories\Contracts\ScoutableRepository;
use Illuminate\Database\Eloquent\Collection;
/** @extends Repository<RadioStation> */
class RadioStationRepository extends Repository implements ScoutableRep... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/GenreRepository.php | app/Repositories/GenreRepository.php | <?php
namespace App\Repositories;
use App\Enums\PlayableType;
use App\Models\Genre;
use App\Models\Song;
use App\Models\User;
use App\Values\GenreSummary;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
/** @extends Repository<Genre> */
class GenreRepository extends Repository
{
/** @return... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/TranscodeRepository.php | app/Repositories/TranscodeRepository.php | <?php
namespace App\Repositories;
use App\Models\Transcode;
use Illuminate\Database\Eloquent\Collection;
/**
* @extends Repository<Transcode>
*/
class TranscodeRepository extends Repository
{
/**
* @param array<string> $songIds
*
* @return Collection<Transcode>|array<array-key, Transcode>
*... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/AlbumRepository.php | app/Repositories/AlbumRepository.php | <?php
namespace App\Repositories;
use App\Models\Album;
use App\Models\Artist;
use App\Models\User;
use App\Repositories\Contracts\ScoutableRepository;
use Illuminate\Contracts\Pagination\Paginator;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
/**
* @extends Repository<Albu... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/OrganizationRepository.php | app/Repositories/OrganizationRepository.php | <?php
namespace App\Repositories;
use App\Models\Organization;
/**
* @extends Repository<Organization>
*/
class OrganizationRepository extends Repository
{
public function getDefault(): Organization
{
return Organization::default();
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/Repository.php | app/Repositories/Repository.php | <?php
namespace App\Repositories;
use App\Repositories\Contracts\Repository as RepositoryContract;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* @template T of Model
* @implements RepositoryContract<T>
*/
abstract class Repository i... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/PodcastRepository.php | app/Repositories/PodcastRepository.php | <?php
namespace App\Repositories;
use App\Models\Podcast;
use App\Models\User;
use App\Repositories\Contracts\ScoutableRepository;
use Illuminate\Database\Eloquent\Collection;
/** @extends Repository<Podcast> */
class PodcastRepository extends Repository implements ScoutableRepository
{
public function findOneBy... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/SongRepository.php | app/Repositories/SongRepository.php | <?php
namespace App\Repositories;
use App\Builders\SongBuilder;
use App\Enums\EmbeddableType;
use App\Enums\PlayableType;
use App\Exceptions\EmbeddableNotFoundException;
use App\Exceptions\NonSmartPlaylistException;
use App\Facades\License;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Embed;
use App\Mo... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/UserRepository.php | app/Repositories/UserRepository.php | <?php
/** @noinspection PhpIncompatibleReturnTypeInspection */
namespace App\Repositories;
use App\Models\User;
use App\Values\User\SsoUser;
/**
* @extends Repository<User>
*/
class UserRepository extends Repository
{
public function getFirstAdminUser(): User
{
return User::firstAdmin();
}
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/PlaylistFolderRepository.php | app/Repositories/PlaylistFolderRepository.php | <?php
namespace App\Repositories;
use App\Models\PlaylistFolder;
/**
* @extends Repository<PlaylistFolder>
*/
class PlaylistFolderRepository extends Repository
{
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/FolderRepository.php | app/Repositories/FolderRepository.php | <?php
namespace App\Repositories;
use App\Models\Folder;
use App\Models\User;
use Illuminate\Database\Eloquent\Collection;
/** @extends Repository<Folder> */
class FolderRepository extends Repository
{
/** @return Collection<Folder>|array<array-key, Folder> */
private static function getOnlyBrowsable(Collect... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/PlaylistRepository.php | app/Repositories/PlaylistRepository.php | <?php
namespace App\Repositories;
use App\Facades\License;
use App\Models\Playlist;
use App\Models\User;
use Illuminate\Support\Collection;
/** @extends Repository<Playlist> */
class PlaylistRepository extends Repository
{
/** @return Collection<Playlist>|array<array-key, Playlist> */
public function getAllA... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/Contracts/Repository.php | app/Repositories/Contracts/Repository.php | <?php
namespace App\Repositories\Contracts;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/** @template T of Model */
interface Repository
{
/** @return T */
public function getOne($id): Model;
/** @return T */
public function getOneBy(array $params): Model;
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Repositories/Contracts/ScoutableRepository.php | app/Repositories/Contracts/ScoutableRepository.php | <?php
namespace App\Repositories\Contracts;
use App\Models\User;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* @template T of Model
*/
interface ScoutableRepository
{
/**
* Search for models based on keywords using Laravel Scout.
*
* @param string $ke... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/StreamerServiceProvider.php | app/Providers/StreamerServiceProvider.php | <?php
namespace App\Providers;
use App\Services\Streamer\Adapters\LocalStreamerAdapter;
use App\Services\Streamer\Adapters\PhpStreamerAdapter;
use App\Services\Streamer\Adapters\XAccelRedirectStreamerAdapter;
use App\Services\Streamer\Adapters\XSendFileStreamerAdapter;
use Illuminate\Support\ServiceProvider;
class S... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/ITunesServiceProvider.php | app/Providers/ITunesServiceProvider.php | <?php
namespace App\Providers;
use App\Services\ITunesService;
use Illuminate\Support\ServiceProvider;
class ITunesServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('iTunes', static fn (): ITunesService => app(ITunesService::class));
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/MacroProvider.php | app/Providers/MacroProvider.php | <?php
namespace App\Providers;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Fac... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/UtilServiceProvider.php | app/Providers/UtilServiceProvider.php | <?php
namespace App\Providers;
use App\Services\Util;
use Illuminate\Support\ServiceProvider;
class UtilServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('Util', static fn (): Util => app(Util::class));
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/SongStorageServiceProvider.php | app/Providers/SongStorageServiceProvider.php | <?php
namespace App\Providers;
use App\Services\SongStorages\DropboxStorage;
use App\Services\SongStorages\LocalStorage;
use App\Services\SongStorages\S3CompatibleStorage;
use App\Services\SongStorages\SftpStorage;
use App\Services\SongStorages\SongStorage;
use Illuminate\Support\ServiceProvider;
class SongStorageSe... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/BroadcastServiceProvider.php | app/Providers/BroadcastServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;
class BroadcastServiceProvider extends ServiceProvider
{
public function boot(): void
{
Broadcast::routes();
require base_path('routes/channels.php');
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/DownloadServiceProvider.php | app/Providers/DownloadServiceProvider.php | <?php
namespace App\Providers;
use App\Services\DownloadService;
use Illuminate\Support\ServiceProvider;
class DownloadServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('Download', static fn (): DownloadService => app(DownloadService::class));
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/ObjectStorageServiceProvider.php | app/Providers/ObjectStorageServiceProvider.php | <?php
namespace App\Providers;
use Aws\AwsClientInterface;
use Aws\S3\S3ClientInterface;
use Illuminate\Support\ServiceProvider;
class ObjectStorageServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->bind(S3ClientInterface::class, static function (): ?AwsClientInt... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/RouteServiceProvider.php | app/Providers/RouteServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Route;
use Webmozart\Assert\Assert;
class RouteServiceProvider extends ServiceProvider
{
public static function loadVersionAwareR... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/EventServiceProvider.php | app/Providers/EventServiceProvider.php | <?php
namespace App\Providers;
use App\Events\LibraryChanged;
use App\Events\MediaScanCompleted;
use App\Events\MultipleSongsLiked;
use App\Events\MultipleSongsUnliked;
use App\Events\NewPlaylistCollaboratorJoined;
use App\Events\PlaybackStarted;
use App\Events\SongFavoriteToggled;
use App\Events\UserUnsubscribedFrom... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/YouTubeServiceProvider.php | app/Providers/YouTubeServiceProvider.php | <?php
namespace App\Providers;
use App\Services\YouTubeService;
use Illuminate\Support\ServiceProvider;
class YouTubeServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('YouTube', static fn (): YouTubeService => app(YouTubeService::class));
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/AppServiceProvider.php | app/Providers/AppServiceProvider.php | <?php
namespace App\Providers;
use App\Enums\Acl\Role;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Genre;
use App\Models\Playlist;
use App\Models\Podcast;
use App\Models\RadioStation;
use App\Models\Song;
use App\Models\User;
use App\Rules\ValidRadioStationUrl;
use App\Services\Contracts\Encyclopedia;... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/AuthServiceProvider.php | app/Providers/AuthServiceProvider.php | <?php
namespace App\Providers;
use App\Models\User;
use App\Services\TokenManager;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\Rules\Pass... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Providers/LicenseServiceProvider.php | app/Providers/LicenseServiceProvider.php | <?php
namespace App\Providers;
use App\Services\License\Contracts\LicenseServiceInterface;
use Illuminate\Support\ServiceProvider;
class LicenseServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('License', static fn (): LicenseServiceInterface => app(License... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Attributes/DemoConstraint.php | app/Attributes/DemoConstraint.php | <?php
namespace App\Attributes;
use Illuminate\Http\Response;
abstract class DemoConstraint
{
public function __construct(
public int $code = Response::HTTP_FORBIDDEN,
public bool $allowAdminOverride = true,
) {
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Attributes/RequiresPlus.php | app/Attributes/RequiresPlus.php | <?php
namespace App\Attributes;
use Attribute;
use Illuminate\Http\Response;
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
class RequiresPlus
{
public function __construct(public int $code = Response::HTTP_NOT_FOUND)
{
}
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Attributes/RequiresDemo.php | app/Attributes/RequiresDemo.php | <?php
namespace App\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
class RequiresDemo extends DemoConstraint
{
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Attributes/DisabledInDemo.php | app/Attributes/DisabledInDemo.php | <?php
namespace App\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
class DisabledInDemo extends DemoConstraint
{
}
| php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/GetArtistWikidataIdUsingMbid.php | app/Pipelines/Encyclopedia/GetArtistWikidataIdUsingMbid.php | <?php
namespace App\Pipelines\Encyclopedia;
use App\Http\Integrations\MusicBrainz\MusicBrainzConnector;
use App\Http\Integrations\MusicBrainz\Requests\GetArtistUrlRelationshipsRequest;
use Closure;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
class GetArtistWikidataIdUsingMbid
{
use TriesRemember;
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/GetAlbumWikidataIdUsingReleaseGroupMbid.php | app/Pipelines/Encyclopedia/GetAlbumWikidataIdUsingReleaseGroupMbid.php | <?php
namespace App\Pipelines\Encyclopedia;
use App\Http\Integrations\MusicBrainz\MusicBrainzConnector;
use App\Http\Integrations\MusicBrainz\Requests\GetReleaseGroupUrlRelationshipsRequest;
use Closure;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
class GetAlbumWikidataIdUsingReleaseGroupMbid
{
use T... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.