© 2026 Hedgehog Software, LLC
foreach() argument must be of type array|object, string given.
Forms\Components\FileUpload::make('screenshot') ->required() ->label(__('Screenshot')) ->directory('transaction-images') ->columnSpanFull(),
test('user can order the product', function () { $this->actingAs(User::factory()->create()); $file = Illuminate\Http\UploadedFile::fake()->create('screenshot.jpg'); livewire('order.create') ->fillForm([ 'url' => fake()->url(), 'screenshot' => $file->name, ]); });