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

Filament Url Image Uploader Laravel Package

amjadiqbal/filament-url-image-uploader

View on GitHub
Deep Wiki
Context7
1.0.3

Fixed

  • ServiceProvider: Removed incorrect hasViewComponent() registration that tried to register a Filament form field (UrlImageUploader) as a Blade view component (Illuminate\View\Component), causing a fatal error when the package was loaded
  • ServiceProvider: Removed redundant packageBooted() override that double-registered the views namespace (already handled by ->hasViews())
  • UrlImageUploader: Fixed state-path nesting bug — the inner FileUpload::make($fieldName) was resolving to state-path {field}.{field} (e.g. image.image) instead of the correct root-level {field} (image), meaning data was never saved to the right database column
  • UrlImageUploader: Added dehydrated(false) to the outer wrapper field so it no longer competes with the inner FileUpload's own dehydration
  • UrlImageUploader: Removed broken afterStateUpdated that prematurely stored uploaded files manually (the FileUpload component handles this automatically in beforeStateDehydrated), preventing double file storage
  • UrlImageUploader: Removed broken afterStateHydrated that overrode BaseFileUpload's correct UUID-keyed state format with a plain array, breaking the FileUpload display in edit mode
  • UrlImageUploader: Added dehydrated(false) to the URL TextInput so the URL value is not persisted to the database
  • UrlImageUploader: Fixed URL fetch action — added 10-second HTTP timeout, finfo content-type validation (rejects non-image responses), filename sanitization, and a proper error notification when the URL is empty or invalid
  • Blade view: Rewrote the image preview logic to correctly handle all state formats: plain string path, full URL string, [uuid => path] array (FileUpload internal format), and plain [path] array

Added

  • PHPUnit test suite with orchestra/testbench integration
  • phpunit.xml configuration
  • Basic unit tests covering instantiation, directory configuration, and dehydration behaviour
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.
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge