Skip to content

Conversation

@bbredewold
Copy link
Contributor

Current

Currently, Storage::fake() only accepts a string.

New

This update allows Storage::fake() to accept backed Enums for the disk name, aligning its behavior with Storage::disk().

Storage::disk(Disk::Local)
Storage::fake(Disk::Local)

@bbredewold bbredewold force-pushed the L12-make-storage-fake-accept-enum branch from 2de8280 to b5d6cee Compare December 11, 2025 06:15
@bbredewold bbredewold changed the title Let Storage::fake() accept enum as disk name [12.x] Let Storage::fake() accept enum as disk name Dec 11, 2025
@taylorotwell taylorotwell merged commit c871a29 into laravel:12.x Dec 11, 2025
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants