call('vendor:publish', ['--tag' => 'cart-config', '--ansi' => true]); static::scaffoldDirectories(app_path('Cart')); $this->info('Cart installed successfully.'); $this->newLine(); $this->line(' Next steps:'); $this->line(' 1. Review config/cart.php and set your preferred storage driver.'); $this->line(' 2. Run php artisan cart:make:coupon MyCoupon to create your first coupon.'); $this->line(' 3. Run php artisan cart:make:tax MyTax to add a tax rule.'); $this->line(' 4. Run php artisan cart:make:shipping MyShipping to add a shipping rate.'); return self::SUCCESS; } public static function scaffoldDirectories(string $base): void { foreach (['Coupons', 'Tax', 'Shipping', 'Drivers'] as $subdir) { $path = "{$base}/{$subdir}"; if (! is_dir($path)) { mkdir($path, 0755, true); } } } }