Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Url Ai Transformer Laravel Package

spatie/laravel-url-ai-transformer

Laravel package to transform URLs and their web content with AI. Extract structured data (JSON-LD), generate summaries, images, or custom outputs via transformers and prompts. Runs via an Artisan command and stores results in the database for later retrieval.

View on GitHub
Deep Wiki
Context7

title: Regenerating results weight: 5

Sometimes you need to regenerate transformation results - perhaps the content has changed, you've updated your transformer logic, or a previous transformation failed. The TransformationResult model provides two methods to handle this.

The regenerate method

The regenerate() method re-runs a transformation for a specific result by dispatching it to the queue:

use Spatie\LaravelUrlAiTransformer\Models\TransformationResult;

$result = TransformationResult::where('url', 'https://example.com/blog/my-post')
    ->where('type', 'ldJson')
    ->first();

// Queue the regeneration
$result->regenerate();

The regenerateNow method

For immediate regeneration without using the queue, use regenerateNow():

// Regenerate immediately, blocking until complete
$result->regenerateNow();
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata