$ the-wire · showcase
Laravel AI tools validate arguments, framework fixes read-through disk visibility
By RepoJournal · Filed · About Laravel
Laravel's AI SDK lets tool requests validate arguments with Laravel's validation rules, while the framework patches a silent visibility bug on read-through disks.
Laravel AI's tool Request now supports $request->validate() [1], so tool handlers can validate incoming arguments with familiar Laravel rules; when validation fails, the error messages are returned to the model as the tool result, letting it correct and retry. The framework fixes a read-through disk bug where setVisibility() silently did nothing for files that only exist on the fallback disk [2]; getVisibility() now promotes the file to the primary disk and sets the requested visibility. Queue payload customization via Queue::createPayloadUsing() moved directly onto the queue manager [3], resolving resolution failures when using injected queues. A backport replaces a hash with spl_object_id in queue internals , avoiding deprecation warnings in 13.x. Also in flight: an exception page tooltip change disables HTML by default [4] and a validation fix lands [5].
Action items
- → Review Laravel AI PR #968 for adding argument validation to your tool handlers laravel/ai [monitor]
- → Test read-through disk visibility changes in 13.x if you rely on fallback files laravel/framework [plan]
References
- [1] Support validating tool request arguments ↗ laravel/ai
- [2] [13.x] Set visibility on files that only exist on a read-through disk's fallback ↗ laravel/framework
- [3] [13.x] Add createPayloadUsing directly to the queue manager ↗ laravel/framework
- [4] [12.x] Disable html by default on Laravel exception page tooltip ↗ laravel/framework
- [5] fix validation disagreement ↗ laravel/framework