'products/example.jpg', 'gallery_paths' => ['products/gallery-1.jpg', 'products/gallery-2.webp'], ]); $this->assertSame('/storage/products/example.jpg', $product->image_url); $this->assertSame([ '/storage/products/example.jpg', '/storage/products/gallery-1.jpg', '/storage/products/gallery-2.webp', ], $product->gallery_urls); } public function test_home_slide_uses_relative_storage_url_for_uploaded_images(): void { $slide = new HomeSlide([ 'image_path' => 'home-slides/banner.webp', ]); $this->assertSame('/storage/home-slides/banner.webp', $slide->image_url); } }