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 |
|---|---|---|---|---|---|---|---|---|
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/migrations/2019_08_19_000000_create_failed_jobs_table.php | database/migrations/2019_08_19_000000_create_failed_jobs_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration
{
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->s... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php | database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePersonalAccessTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pe... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/seeders/UsersTableSeeder.php | database/seeders/UsersTableSeeder.php | <?php
namespace Database\Seeders;
use Domain\User\User;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
public function run()
{
User::truncate();
User::create([
'username' => 'admin',
'nickname' => '超级管理员',
'is_admin' => 1,
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/seeders/DatabaseSeeder.php | database/seeders/DatabaseSeeder.php | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
public function run()
{
$this->call(UsersTableSeeder::class);
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/*')
->notPath('storage/*')
->notPath('resources/view/mail/*')
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(tr... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/FilamentMediaManagerServiceProvider.php | src/FilamentMediaManagerServiceProvider.php | <?php
namespace TomatoPHP\FilamentMediaManager;
use Illuminate\Support\ServiceProvider;
use Livewire\Livewire;
use TomatoPHP\FilamentMediaManager\Services\FilamentMediaManagerServices;
class FilamentMediaManagerServiceProvider extends ServiceProvider
{
public function register(): void
{
// Register g... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/FilamentMediaManagerPlugin.php | src/FilamentMediaManagerPlugin.php | <?php
namespace TomatoPHP\FilamentMediaManager;
use Filament\Contracts\Plugin;
use Filament\Panel;
use Livewire\Livewire;
use TomatoPHP\FilamentMediaManager\Livewire\MediaPicker;
use TomatoPHP\FilamentMediaManager\Resources\FolderResource;
use TomatoPHP\FilamentMediaManager\Resources\MediaResource;
class FilamentMed... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Livewire/FolderComponent.php | src/Livewire/FolderComponent.php | <?php
namespace TomatoPHP\FilamentMediaManager\Livewire;
use Filament\Actions\Action;
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
use Filament\Schemas\Concerns\InteractsWithSchemas;
use... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Livewire/MediaPicker.php | src/Livewire/MediaPicker.php | <?php
namespace TomatoPHP\FilamentMediaManager\Livewire;
use Filament\Actions\Action;
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
use Filament\... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Http/Controllers/FolderController.php | src/Http/Controllers/FolderController.php | <?php
namespace TomatoPHP\FilamentMediaManager\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use TomatoPHP\FilamentMediaManager\Models\Folder;
class FolderController extends Controller
{
public function index(Request $request)
{
$folders = config('filament-media-... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Http/Resources/FolderResource.php | src/Http/Resources/FolderResource.php | <?php
namespace TomatoPHP\FilamentMediaManager\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
use Spatie\MediaLibrary\MediaCollections\Models\Media;
use TomatoPHP\FilamentMediaManager\Models\Folder;
class FolderResource extends JsonResource
{
public function toArray($request)
{
$med... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Http/Resources/MediaResource.php | src/Http/Resources/MediaResource.php | <?php
namespace TomatoPHP\FilamentMediaManager\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class MediaResource extends JsonResource
{
public function toArray($request)
{
return [
'id' => $this->id,
'uuid' => $this->uuid,
'name' => $this->name,
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Http/Resources/FoldersResource.php | src/Http/Resources/FoldersResource.php | <?php
namespace TomatoPHP\FilamentMediaManager\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class FoldersResource extends JsonResource
{
public function toArray($request)
{
return [
'id' => $this->id,
'name' => $this->name,
'description' => $thi... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Traits/InteractsWithMediaManager.php | src/Traits/InteractsWithMediaManager.php | <?php
namespace TomatoPHP\FilamentMediaManager\Traits;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\DB;
use TomatoPHP\FilamentMediaManager\Models\Media;
trait InteractsWithMediaManager
{
/**
* Get media attached via MediaManagerPicker by collection name
*
* @param s... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Traits/InteractsWithMediaFolders.php | src/Traits/InteractsWithMediaFolders.php | <?php
namespace TomatoPHP\FilamentMediaManager\Traits;
trait InteractsWithMediaFolders
{
public function folders()
{
return $this->morphToMany(config('filament-media-manager.model.folder'), 'model', 'folder_has_models', 'model_id', 'folder_id');
}
public function myFolders()
{
ret... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Facade/FilamentMediaManager.php | src/Facade/FilamentMediaManager.php | <?php
namespace TomatoPHP\FilamentMediaManager\Facade;
use Illuminate\Support\Facades\Facade;
/**
* @method static void register(MediaManagerType|array $type)
* @method static array getTypes()
*/
class FilamentMediaManager extends Facade
{
protected static function getFacadeAccessor()
{
return 'fi... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Form/MediaManagerInput.php | src/Form/MediaManagerInput.php | <?php
namespace TomatoPHP\FilamentMediaManager\Form;
use Closure;
use Filament\Actions\Action;
use Filament\Forms\Components\Component;
use Filament\Forms\Components\Repeater;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use League\Flysystem\UnableToCheckFileExistenc... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Form/MediaManagerPicker.php | src/Form/MediaManagerPicker.php | <?php
namespace TomatoPHP\FilamentMediaManager\Form;
use Closure;
use Filament\Actions\Action;
use Filament\Forms\Components\Field;
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\ResponsiveImages\Jobs\GenerateResponsiveImagesJob;
use TomatoPHP\FilamentMediaManager\Models\Media;
class MediaManagerPic... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Form/FileInput.php | src/Form/FileInput.php | <?php
namespace TomatoPHP\FilamentMediaManager\Form;
use Filament\Forms\Components\BaseFileUpload;
use Filament\Forms\Components\SpatieMediaLibraryFileUpload;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\MediaCollections\Models\Me... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Services/FilamentMediaManagerServices.php | src/Services/FilamentMediaManagerServices.php | <?php
namespace TomatoPHP\FilamentMediaManager\Services;
use Filament\Support\Assets\Css;
use Filament\Support\Assets\Js;
use Filament\Support\Facades\FilamentAsset;
use TomatoPHP\FilamentMediaManager\Services\Contracts\MediaManagerType;
class FilamentMediaManagerServices
{
protected array $types = [];
publ... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Services/Contracts/MediaManagerType.php | src/Services/Contracts/MediaManagerType.php | <?php
namespace TomatoPHP\FilamentMediaManager\Services\Contracts;
class MediaManagerType
{
public ?string $exstantion = null;
public ?string $icon = null;
public ?string $preview = null;
public ?array $js = null;
public ?array $css = null;
public static function make(?string $exstantion ... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Console/FilamentMediaManagerInstall.php | src/Console/FilamentMediaManagerInstall.php | <?php
namespace TomatoPHP\FilamentMediaManager\Console;
use Illuminate\Console\Command;
use TomatoPHP\ConsoleHelpers\Traits\RunCommand;
class FilamentMediaManagerInstall extends Command
{
use RunCommand;
/**
* The name and signature of the console command.
*
* @var string
*/
protecte... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/FolderResource.php | src/Resources/FolderResource.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources;
use BackedEnum;
use Filament\Actions;
use Filament\Forms;
use Filament\Resources\Resource;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\Utilities\Set;
use Filament\Schemas\Schema;
use Filament\Tables;
use Filament\Tables\Table... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/MediaResource.php | src/Resources/MediaResource.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources;
use BackedEnum;
use Filament\Actions;
use Filament\Forms;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use TomatoPHP\FilamentMediaManager\Models\Folder;
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/MediaResource/Pages/CreateMedia.php | src/Resources/MediaResource/Pages/CreateMedia.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\MediaResource\Pages;
use Filament\Resources\Pages\CreateRecord;
use TomatoPHP\FilamentMediaManager\Resources\MediaResource;
class CreateMedia extends CreateRecord
{
protected static string $resource = MediaResource::class;
}
| php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/MediaResource/Pages/EditMedia.php | src/Resources/MediaResource/Pages/EditMedia.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\MediaResource\Pages;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
use TomatoPHP\FilamentMediaManager\Resources\MediaResource;
class EditMedia extends EditRecord
{
protected static string $resource = MediaResource::class;
protected fu... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/MediaResource/Pages/ListMedia.php | src/Resources/MediaResource/Pages/ListMedia.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\MediaResource\Pages;
use Filament\Actions;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\ManageRecords;
use Illuminate\Contracts\Support\Htmlable;
use TomatoPHP\FilamentMediaManager\Models\Folder;... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/Actions/CreateSubFolderAction.php | src/Resources/Actions/CreateSubFolderAction.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\Actions;
use Filament\Actions;
use Filament\Forms;
use Filament\Notifications\Notification;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\Utilities\Set;
use Illuminate\Support\Str;
use TomatoPHP\FilamentIcons\Components\IconPick... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/Actions/CreateMediaAction.php | src/Resources/Actions/CreateMediaAction.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\Actions;
use Filament\Actions;
use Filament\Forms;
use Filament\Notifications\Notification;
use TomatoPHP\FilamentMediaManager\Models\Folder;
class CreateMediaAction
{
public static function make(int $folder_id): Actions\Action
{
return Actions... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/Actions/DeleteFolderAction.php | src/Resources/Actions/DeleteFolderAction.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\Actions;
use Filament\Actions;
use Filament\Notifications\Notification;
class DeleteFolderAction
{
public static function make(int $folder_id): Actions\Action
{
return Actions\Action::make('delete_folder')
->mountUsing(function () u... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/Actions/EditCurrentFolderAction.php | src/Resources/Actions/EditCurrentFolderAction.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\Actions;
use Filament\Actions;
use Filament\Forms;
use Filament\Notifications\Notification;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Components\Utilities\Get;
use TomatoPHP\FilamentIcons\Components\IconPicker;
class EditCurrentFolderAction
{
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/FolderResource/Pages/EditFolder.php | src/Resources/FolderResource/Pages/EditFolder.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\FolderResource\Pages;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
use TomatoPHP\FilamentMediaManager\Resources\FolderResource;
class EditFolder extends EditRecord
{
protected static string $resource = FolderResource::class;
protecte... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/FolderResource/Pages/CreateFolder.php | src/Resources/FolderResource/Pages/CreateFolder.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\FolderResource\Pages;
use Filament\Resources\Pages\CreateRecord;
use TomatoPHP\FilamentMediaManager\Resources\FolderResource;
class CreateFolder extends CreateRecord
{
protected static string $resource = FolderResource::class;
}
| php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Resources/FolderResource/Pages/ListFolders.php | src/Resources/FolderResource/Pages/ListFolders.php | <?php
namespace TomatoPHP\FilamentMediaManager\Resources\FolderResource\Pages;
use Filament\Actions;
use Filament\Resources\Pages\ManageRecords;
use TomatoPHP\FilamentMediaManager\Resources\FolderResource;
class ListFolders extends ManageRecords
{
protected static string $resource = FolderResource::class;
p... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Models/Folder.php | src/Models/Folder.php | <?php
namespace TomatoPHP\FilamentMediaManager\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
class Folder extends Model implements HasMedia
{
use HasFactory;
use InteractsWit... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/src/Models/Media.php | src/Models/Media.php | <?php
namespace TomatoPHP\FilamentMediaManager\Models;
use Illuminate\Database\Eloquent\Builder;
class Media extends \Spatie\MediaLibrary\MediaCollections\Models\Media
{
protected static function booted(): void
{
static::addGlobalScope('folder', function (Builder $query) {
$folder = Folde... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/Pest.php | tests/Pest.php | <?php
use TomatoPHP\FilamentMediaManager\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
| php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/MediaManagerPickerTest.php | tests/src/MediaManagerPickerTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
use TomatoPHP\FilamentMediaManager\Form\MediaManagerPicker;
use TomatoPHP\FilamentMediaManager\Livewire\MediaPicker;
use TomatoPHP\FilamentMediaManager\Mod... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/TestCase.php | tests/src/TestCase.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use BladeUI\Heroicons\BladeHeroiconsServiceProvider;
use BladeUI\Icons\BladeIconsServiceProvider;
use Filament\Actions\ActionsServiceProvider;
use Filament\Facades\Filament;
use Filament\FilamentServiceProvider;
use Filament\Forms\FormsServiceProvider;
use Filamen... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/FolderResourceTest.php | tests/src/FolderResourceTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use Filament\Actions\EditAction;
use TomatoPHP\FilamentMediaManager\Models\Folder;
use TomatoPHP\FilamentMediaManager\Resources\FolderResource;
use TomatoPHP\FilamentMediaManager\Resources\FolderResource\Pages;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/PluginTest.php | tests/src/PluginTest.php | <?php
use Filament\Facades\Filament;
use TomatoPHP\FilamentMediaManager\FilamentMediaManagerPlugin;
it('registers plugin', function () {
$panel = Filament::getCurrentOrDefaultPanel();
$panel->plugins([
FilamentMediaManagerPlugin::make(),
]);
expect($panel->getPlugin('filament-media-manager')... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/MediaManagerInputTest.php | tests/src/MediaManagerInputTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use TomatoPHP\FilamentMediaManager\Form\MediaManagerInput;
use TomatoPHP\FilamentMediaManager\Tests\Models\Product;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;
use function Pest\L... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/ProtectedFolderTest.php | tests/src/ProtectedFolderTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use TomatoPHP\FilamentMediaManager\Models\Folder;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;
use function Pest\Laravel\actingAs;
use function Pest\Laravel\assertDatabaseHas;
beforeEach(function () {
actingAs(User::factory()->create());
});
it('ca... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/AdminPanelProvider.php | tests/src/AdminPanelProvider.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Pages;
use Filament\Panel;
use Filament\PanelProvider;
use Illuminate\Cookie\Middleware\AddQ... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/DebugTest.php | tests/src/DebugTest.php | <?php
it('will not use debugging functions', function () {
expect(['dd', 'dump', 'ray'])->each->not->toBeUsed();
});
| php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/MediaResourceTest.php | tests/src/MediaResourceTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use Illuminate\Support\Facades\Storage;
use TomatoPHP\FilamentMediaManager\Models\Folder;
use TomatoPHP\FilamentMediaManager\Models\Media;
use TomatoPHP\FilamentMediaManager\Resources\MediaResource;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;
use functi... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/LivewireComponentTest.php | tests/src/LivewireComponentTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use TomatoPHP\FilamentMediaManager\Livewire\FolderComponent;
use TomatoPHP\FilamentMediaManager\Models\Folder;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;
use function Pest\Laravel\actingAs;
use function Pest\Livewire\livewire;
beforeEach(function () {... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/InteractsWithMediaManagerTest.php | tests/src/InteractsWithMediaManagerTest.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
use TomatoPHP\FilamentMediaManager\Tests\Models\Product;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;
use function Pest\Laravel\actingAs;
before... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/Models/Product.php | tests/src/Models/Product.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use TomatoPHP\FilamentMediaManager\Tests\Database\Factories\ProductFactory;
use Toma... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/src/Models/User.php | tests/src/Models/User.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests\Models;
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifi... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/database/factories/UserFactory.php | tests/database/factories/UserFactory.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use TomatoPHP\FilamentMediaManager\Tests\Models\User;
class UserFactory extends Factory
{
protected $model = User::class;
public function definition(): arr... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/database/factories/FolderFactory.php | tests/database/factories/FolderFactory.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use TomatoPHP\FilamentMediaManager\Models\Folder;
class FolderFactory extends Factory
{
protected $model = Folder::class;
public function definition(): arr... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/database/factories/ProductFactory.php | tests/database/factories/ProductFactory.php | <?php
namespace TomatoPHP\FilamentMediaManager\Tests\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use TomatoPHP\FilamentMediaManager\Tests\Models\Product;
class ProductFactory extends Factory
{
protected $model = Product::class;
public function definition(): array
{
re... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/tests/database/migrations/2025_10_07_000001_create_products_table.php | tests/database/migrations/2025_10_07_000001_create_products_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('products', function (Blueprint $table) {
$table->id();
$table->... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/routes/api.php | routes/api.php | <?php
use Illuminate\Support\Facades\Route;
Route::middleware(config('filament-media-manager.api.middlewares'))->prefix(config('filament-media-manager.api.prefix'))->name('media-manager.')->group(function () {
Route::get('/folders', [\TomatoPHP\FilamentMediaManager\Http\Controllers\FolderController::class, 'index... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/config/filament-media-manager.php | config/filament-media-manager.php | <?php
return [
'model' => [
'folder' => \TomatoPHP\FilamentMediaManager\Models\Folder::class,
'media' => \TomatoPHP\FilamentMediaManager\Models\Media::class,
],
'api' => [
'active' => false,
'middlewares' => [
'api',
'auth:sanctum',
],
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_10_03_171810_update_folders_table.php | database/migrations/2024_10_03_171810_update_folders_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('folders', function (Blue... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_10_03_171808_create_media_has_models_table.php | database/migrations/2024_10_03_171808_create_media_has_models_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('media_has_models', func... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_10_20_000000_add_order_column_to_media_has_models_table.php | database/migrations/2024_10_20_000000_add_order_column_to_media_has_models_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('media_has_models', function (Blueprint $table... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_10_21_000000_add_collection_name_to_media_has_models_table.php | database/migrations/2024_10_21_000000_add_collection_name_to_media_has_models_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('media_has_models', funct... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_10_03_171807_create_folders_table.php | database/migrations/2024_10_03_171807_create_folders_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('folders', function (Blu... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_09_28_143941_add_media_if_not_exists_table.php | database/migrations/2024_09_28_143941_add_media_if_not_exists_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (! Schema::hasTable('media')) {
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/database/migrations/2024_10_03_171809_create_folder_has_models_table.php | database/migrations/2024_10_03_171809_create_folder_has_models_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('folder_has_models', fun... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/lang/tr/messages.php | resources/lang/tr/messages.php | <?php
return [
'empty' => [
'title' => 'Medya veya Klasör Bulunamadı',
],
'folders' => [
'title' => 'Medya Yöneticisi',
'single' => 'Klasör',
'columns' => [
'name' => 'Ad',
'collection' => 'Koleksiyon',
'description' => 'Açıklama',
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/lang/en/messages.php | resources/lang/en/messages.php | <?php
return [
'empty' => [
'title' => 'No Media or Folders Found',
],
'folders' => [
'title' => 'Media Manager',
'single' => 'Folder',
'columns' => [
'name' => 'Name',
'collection' => 'Collection',
'description' => 'Description',
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/lang/ar/messages.php | resources/lang/ar/messages.php | <?php
return [
'empty' => [
'title' => 'لا يوجد وسائط أو مجلدات',
],
'folders' => [
'title' => 'مدير الوسائط',
'single' => 'مجلد',
'columns' => [
'name' => 'الاسم',
'collection' => 'المجموعة',
'description' => 'الوصف',
'icon' =... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/lang/ru/messages.php | resources/lang/ru/messages.php | <?php
return [
'empty' => [
'title' => 'Медиа или папки отсутствуют',
],
'folders' => [
'title' => 'Медиа менеджер',
'single' => 'Папка',
'columns' => [
'name' => 'Название',
'collection' => 'Коллекция',
'description' => 'Описание',
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/pages/media.blade.php | resources/views/pages/media.blade.php | @php
$currentFolder = \TomatoPHP\FilamentMediaManager\Models\Folder::find($this->folder_id);
if(filament('filament-media-manager')->allowSubFolders){
$folders = \TomatoPHP\FilamentMediaManager\Models\Folder::query()
->where('model_type', \TomatoPHP\FilamentMediaManager\Models\Folder::class)
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/pages/folders.blade.php | resources/views/pages/folders.blade.php | <div class="fi-section-content" style="padding: 32px;">
<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem;">
@foreach($records as $item)
@livewire(\TomatoPHP\FilamentMediaManager\Livewire\FolderComponent::class, ['item' => $item], key('folder-' . ... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/components/folder-action-view.blade.php | resources/views/components/folder-action-view.blade.php | @php
use Filament\Support\Enums\IconPosition;
use Filament\Support\Enums\IconSize;
use Filament\Support\Enums\Size;
use Filament\Support\View\Components\BadgeComponent;
use Filament\Support\View\Components\ButtonComponent;
use Illuminate\View\ComponentAttributeBag;
@endphp
@props([
'badge' ... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/components/media-picker-modal.blade.php | resources/views/components/media-picker-modal.blade.php | @livewire('media-picker', [
'pickerKey' => $pickerKey,
'isMultiple' => $isMultiple,
'collectionName' => $collectionName,
'maxItems' => $maxItems ?? null,
'minItems' => $minItems ?? null,
'initialState' => $currentState ?? null,
])
| php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/forms/media-manager-picker.blade.php | resources/views/forms/media-manager-picker.blade.php | @php
$statePath = $getStatePath();
$isMultiple = $isMultiple();
$state = $getState();
$mediaItems = [];
if ($state) {
$uuids = is_array($state) ? $state : [$state];
$media = \TomatoPHP\FilamentMediaManager\Models\Media::whereIn('uuid', $uuids)->get()->keyBy('uuid');
// Orde... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/livewire/folder-component.blade.php | resources/views/livewire/folder-component.blade.php | <div>
{{ ($this->getFolderAction)(['item' => $item]) }}
<x-filament-actions::modals />
</div>
| php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/livewire/media-picker.blade.php | resources/views/livewire/media-picker.blade.php | <div class="fi-modal-content space-y-4">
{{-- Search Input --}}
<x-filament::input.wrapper>
<x-filament::input
type="search"
wire:model.live.debounce.300ms="search"
placeholder="{{ trans('filament-media-manager::messages.picker.search') }}"
autocomplete="o... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | true |
tomatophp/filament-media-manager | https://github.com/tomatophp/filament-media-manager/blob/62363eb20220911b3d35872af65c056ff2aecd34/resources/views/columns/media-preview.blade.php | resources/views/columns/media-preview.blade.php | @php
$extension = strtolower(pathinfo($getRecord()->file_name, PATHINFO_EXTENSION));
// File type icon mapping
$fileIcons = [
// Documents
'pdf' => ['icon' => 'heroicon-o-document-text', 'color' => '#ef4444'],
'doc' => ['icon' => 'heroicon-o-document-text', 'color' => '#3b82f6'],
... | php | MIT | 62363eb20220911b3d35872af65c056ff2aecd34 | 2026-01-05T04:38:04.217779Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/src/Formatter/ColoredLineFormatter.php | src/Formatter/ColoredLineFormatter.php | <?php
namespace Bramus\Monolog\Formatter;
use Bramus\Monolog\Formatter\ColorSchemes\DefaultScheme;
use Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface;
use Monolog\LogRecord;
/**
* A Colored Line Formatter for Monolog
*/
class ColoredLineFormatter extends \Monolog\Formatter\LineFormatter
{
/**
... | php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/src/Formatter/ColorSchemes/ColorSchemeInterface.php | src/Formatter/ColorSchemes/ColorSchemeInterface.php | <?php
namespace Bramus\Monolog\Formatter\ColorSchemes;
interface ColorSchemeInterface
{
/**
* Set the Color Scheme
* @param array $colorScheme The Color Scheme
*/
public function setColorizeArray(array $colorScheme): void;
/**
* Get the Color Scheme
* @return array Color Scheme
... | php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/src/Formatter/ColorSchemes/ColorSchemeTrait.php | src/Formatter/ColorSchemes/ColorSchemeTrait.php | <?php
namespace Bramus\Monolog\Formatter\ColorSchemes;
use Bramus\Ansi\Ansi;
use Bramus\Ansi\Writers\BufferWriter;
use Exception;
use Monolog\Level;
trait ColorSchemeTrait
{
/**
* ANSI Wrapper which provides colors
* @var Ansi
*/
protected Ansi $ansi;
/**
* The Color Scheme Array
... | php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/src/Formatter/ColorSchemes/DefaultScheme.php | src/Formatter/ColorSchemes/DefaultScheme.php | <?php
namespace Bramus\Monolog\Formatter\ColorSchemes;
use Monolog\Level;
use Bramus\Ansi\ControlSequences\EscapeSequences\Enums\SGR;
class DefaultScheme implements ColorSchemeInterface
{
/**
* Use the ColorScheme and alias its constructor
*/
use ColorSchemeTrait {
ColorSchemeTrait::__const... | php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/src/Formatter/ColorSchemes/TrafficLight.php | src/Formatter/ColorSchemes/TrafficLight.php | <?php
namespace Bramus\Monolog\Formatter\ColorSchemes;
use Monolog\Level;
use Bramus\Ansi\ControlSequences\EscapeSequences\Enums\SGR;
class TrafficLight implements ColorSchemeInterface
{
/**
* Use the ColorScheme and alias its constructor
*/
use ColorSchemeTrait {
ColorSchemeTrait::__constr... | php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/tests/ColoredLineFormatterTest.php | tests/ColoredLineFormatterTest.php | <?php
use Monolog\Level;
use Bramus\Monolog\Formatter\ColoredLineFormatter;
use Bramus\Ansi\Ansi;
use Bramus\Ansi\Writers\BufferWriter;
use Bramus\Ansi\ControlSequences\EscapeSequences\Enums\SGR;
use PHPUnit\Framework\TestCase;
class ColoredLineFormatterTest extends TestCase
{
protected Ansi $ansi;
protected ... | php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
bramus/monolog-colored-line-formatter | https://github.com/bramus/monolog-colored-line-formatter/blob/1ca4f692b7d3030a59599ffc0ad102195c005aed/tests/bootstrap.php | tests/bootstrap.php | <?php
// Enable Error Reporting
error_reporting(E_ALL);
ini_set('display_errors', 'on');
// Requires
require_once __DIR__.'/../vendor/autoload.php';
// EOF
| php | MIT | 1ca4f692b7d3030a59599ffc0ad102195c005aed | 2026-01-05T04:38:10.675059Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/examples',
__DIR__ . '/sample',
... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tools/stub.php | tools/stub.php | <?php
Phar::mapPhar('opentok.phar');
require_once('phar://'.__FILE__.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php');
__HALT_COMPILER();
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/StreamList.php | src/OpenTok/StreamList.php | <?php
namespace OpenTok;
/**
* An object, returned by the <a href="OpenTok.OpenTok.html#method_listStreams">OpenTok.listStreams()</a>
* method, representing a list of streams in an OpenTok session.
*/
class StreamList
{
/** @ignore */
private ?array $items = null;
/** @ignore */
public function __... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Connection.php | src/OpenTok/Connection.php | <?php
namespace OpenTok;
/**
* Represents a connection in an OpenTok session.
* <p>
* See <a href="OpenTok.OpenTok.html#method_listConnections">OpenTok.listConnections()</a>.
*
* @property String $connectionId
* The connection ID.
*
* @property String $connectionState
* The state of the connection (either "Connecting... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Stream.php | src/OpenTok/Stream.php | <?php
namespace OpenTok;
/**
* Represents a stream in an OpenTok session.
* <p>
* See <a href="OpenTok.OpenTok.html#method_getStream">OpenTok.getStream()</a> and
* <a href="OpenTok.OpenTok.html#method_listStreams">OpenTok.listStreams()</a>.
*
* @property String $id
* The stream ID.
*
* @property Array $layoutClassLis... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Render.php | src/OpenTok/Render.php | <?php
namespace OpenTok;
/**
* Represents an Experience Composer render of an OpenTok session.
*
* @property string $id
* The unique ID for the Experience Composer.
*
* @property string $sessionId
* The session ID of the OpenTok session associated with this render.
*
* @property string $projectId
* The API... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Broadcast.php | src/OpenTok/Broadcast.php | <?php
namespace OpenTok;
use OpenTok\Exception\BroadcastDomainException;
use OpenTok\Exception\BroadcastUnexpectedValueException;
use OpenTok\Exception\InvalidArgumentException;
use OpenTok\Util\Client;
use OpenTok\Util\Validators;
/**
* Represents a broadcast of an OpenTok session.
*
* @property int $createdAt
* Th... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/MediaMode.php | src/OpenTok/MediaMode.php | <?php
namespace OpenTok;
use OpenTok\Util\BasicEnum;
/**
* Defines values for the mediaMode parameter of the \OpenTok\OpenTok->createSession()
* method.
*/
abstract class MediaMode extends BasicEnum
{
/**
* The session will send streams using the OpenTok Media Router.
*/
const ROUTED = 'disabled... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Archive.php | src/OpenTok/Archive.php | <?php
namespace OpenTok;
use DomainException;
use OpenTok\Util\Client;
use OpenTok\Util\Validators;
use OpenTok\Exception\InvalidArgumentException;
use OpenTok\Exception\ArchiveUnexpectedValueException;
/**
* Represents an archive of an OpenTok session.
*
* @property int $createdAt
* The time at which the archive wa... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Layout.php | src/OpenTok/Layout.php | <?php
namespace OpenTok;
use JsonSerializable;
use RuntimeException;
use ReturnTypeWillChange;
use OpenTok\Util\Validators;
/**
* Defines the object passed in as the $layout parameter of the
* OpenTok->setArchiveLayout() and OpenTok->updateBroadcastLayout() methods.
* <p>
* To instantiate a Layout object, call o... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Role.php | src/OpenTok/Role.php | <?php
namespace OpenTok;
use OpenTok\Util\BasicEnum;
/**
* Defines values for the role parameter of the \OpenTok\OpenTok->generateToken()
* method.
*/
abstract class Role extends BasicEnum
{
/**
* A subscriber can only subscribe to streams.
*/
const SUBSCRIBER = 'subscriber';
/**
* A pub... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/OutputMode.php | src/OpenTok/OutputMode.php | <?php
namespace OpenTok;
use OpenTok\Util\BasicEnum;
/**
* Defines values for the outputMode option of the \OpenTok\OpenTok->startArchive() method
* and for the outputMode property of the Archive class.
*
* See <a href="OpenTok.OpenTok.html#method_startArchive">OpenTok->startArchive()</a>
* and <a href="OpenTok... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/SipCall.php | src/OpenTok/SipCall.php | <?php
namespace OpenTok;
/**
* Represents data from a SIP Call
*
* @property string $id
* The unique identifier of the call that is created.
*
* @property string $connectionId
* The unique identifier of the connection that represents the SIP call in
* the session. You can use this value to disconnect the SIP call usi... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/ConnectionList.php | src/OpenTok/ConnectionList.php | <?php
namespace OpenTok;
use Iterator;
/**
* An object, returned by the <a href="OpenTok.OpenTok.html#method_listConnections">OpenTok.listConnections()</a>
* method, representing a list of connections in an OpenTok session.
*/
class ConnectionList implements Iterator
{
/** @ignore */
private ?array $items... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/ArchiveList.php | src/OpenTok/ArchiveList.php | <?php
namespace OpenTok;
use OpenTok\Util\Client;
use OpenTok\Util\Validators;
// TODO: may want to implement the ArrayAccess interface in the future
// TODO: what does implementing JsonSerializable gain for us?
/**
* A class for accessing an array of Archive objects.
*/
class ArchiveList
{
/**
* @internal
... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/OpenTok.php | src/OpenTok/OpenTok.php | <?php
namespace OpenTok;
use Exception;
use DateTimeImmutable;
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
use Lcobucci\JWT\Configuration;
use Lcobucci\JWT\Encoding\ChainedFormatter;
use Lcobucci\JWT\Encoding\JoseEncoder;
use Lcobucci\JWT\Signer\Key\InMemory;
use Lcobucci\JWT\Signer\Rsa\Sha256;
use Lcobucci\JWT\Token... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | true |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Session.php | src/OpenTok/Session.php | <?php
namespace OpenTok;
use Stringable;
use OpenTok\Util\Validators;
/**
* Represents an OpenTok session.
* <p>
* Use the \OpenTok\OpenTok->createSession() method to create an OpenTok session. Use the
* getSessionId() method of the Session object to get the session ID.
*/
class Session implements Stringable
{
/... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/ArchiveMode.php | src/OpenTok/ArchiveMode.php | <?php
namespace OpenTok;
use OpenTok\Util\BasicEnum;
/**
* Defines values for the archiveMode parameter of the OpenTok->createSession method and
* the return value for the Session->getArchiveMode() method.
* <p>
* See <a href="OpenTok.OpenTok.html#method_createSession">OpenTok->createSession()</a>
* and <a href... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.