fix: correct custom driver registration hint in cart:make:driver

The command told users to register their driver in config/cart.php
under "drivers", but CartManager has no such registration point for
custom drivers. The actual mechanism is Cart::extend() called from a
service provider's boot() method.
This commit is contained in:
Joel Male
2026-08-04 12:06:58 +10:00
parent c6ec19121c
commit 45ef72894b
+1 -1
View File
@@ -42,7 +42,7 @@ public function handle(): int
} }
$this->info("Driver created: app/Cart/Drivers/{$name}.php"); $this->info("Driver created: app/Cart/Drivers/{$name}.php");
$this->line(" Register it in config/cart.php under <comment>drivers</comment>."); $this->line(" Register it with <comment>Cart::extend()</comment> in a service provider's boot() method, then set 'driver' to its name in config/cart.php.");
return self::SUCCESS; return self::SUCCESS;
} }