schema(VideoFormSchema::resourceSchema(partnerScoped: true)); } public static function table(Table $table): Table { return VideoTableSchema::configure($table, showOwner: false); } public static function getEloquentQuery(): Builder { return parent::getEloquentQuery() ->whereHas('listing', fn (Builder $query): Builder => $query->where('user_id', Filament::auth()->id())); } public static function getPages(): array { return [ 'index' => Pages\ListVideos::route('/'), 'create' => Pages\CreateVideo::route('/create'), 'edit' => Pages\EditVideo::route('/{record}/edit'), ]; } }