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

Ink Laravel Package

relaticle/ink

Filament-native content publishing for Laravel: Eloquent models, full admin for posts/categories, SEO + JSON-LD, RSS, search, Blade UI components, and 13 MCP tools for AI agents. Headless by default with optional public blog routes.

View on GitHub
Deep Wiki
Context7

title: MediaLibrary Integration description: Opt-in featured-image upload via spatie/laravel-medialibrary. navigation: icon: i-lucide-image

The package ships an opt-in integration with spatie/laravel-medialibrary. When enabled, the featured-image upload uses SpatieMediaLibraryFileUpload instead of the default FileUpload.

::alert{type="info"} MediaLibrary is not a hard dependency. If you don't install it, the form gracefully falls back to the plain FileUpload — no crash. Flipping features.media_library without installing MediaLibrary is a no-op. ::

Enable

  1. Install the package:

    composer require spatie/laravel-medialibrary
    php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"
    php artisan migrate
    
  2. Flip the flag:

    'features' => [
        'media_library' => true,
    ],
    
  3. Use the form as usual — the featured-image field now writes to the MediaLibrary media table on a featured_image collection.

Form-side only (for now)

This integration covers the admin form-component swap only. The model-side integration (implementing HasMedia, registering collections via registerMediaCollections(), migrating existing featured_image string column data) is intentionally deferred — that requires careful schema-migration design that doesn't fit a feature-flag layer.

If you want the full integration today, override the Post model in your app:

namespace App\Models;

use Relaticle\Ink\Models\Post as BasePost;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection;

class BlogPost extends BasePost implements HasMedia
{
    use InteractsWithMedia;

    public function registerMediaCollections(): void
    {
        $this->addMediaCollection('featured_image')->singleFile();
    }
}

Then point the package at your model:

// (post_model is not currently a config key — track this in
// Phase 3 follow-up; for now the package always uses its own Post)

::alert{type="warning"} Swapping the post model isn't a config option in v1.4 — that lands in Phase 3 along with the model-side integration. Watch the GitHub releases for v1.5. ::

Migrating existing featured_image data

When Phase 3 lands, existing posts with a featured_image string path will be migrated to MediaLibrary entries via a console command. Until then, two options:

  1. Stay on FileUpload — leave the flag off. No migration required.
  2. Manual migration — write your own script to copy featured_image files into MediaLibrary on a featured_image collection.

Both Tapix and FilaForms blogs (which this package replaces) use the same string-column approach, so flipping the flag without migration leaves you in a usable state — new posts go to MediaLibrary, old posts keep using the string path. The shipped views render whichever exists.

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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity