mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 13:51:44 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user