mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 22:01:48 +00:00
feat: register Artisan commands in CartServiceProvider
This commit is contained in:
@@ -5,6 +5,12 @@
|
|||||||
namespace Wearepixel\Cart;
|
namespace Wearepixel\Cart;
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
use Wearepixel\Cart\Commands\DebugCommand;
|
||||||
|
use Wearepixel\Cart\Commands\InstallCommand;
|
||||||
|
use Wearepixel\Cart\Commands\MakeCouponCommand;
|
||||||
|
use Wearepixel\Cart\Commands\MakeDriverCommand;
|
||||||
|
use Wearepixel\Cart\Commands\MakeShippingCommand;
|
||||||
|
use Wearepixel\Cart\Commands\MakeTaxCommand;
|
||||||
|
|
||||||
class CartServiceProvider extends ServiceProvider
|
class CartServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
@@ -15,7 +21,16 @@ public function boot(): void
|
|||||||
if ($this->app->runningInConsole()) {
|
if ($this->app->runningInConsole()) {
|
||||||
$this->publishes([
|
$this->publishes([
|
||||||
__DIR__ . '/../config/config.php' => config_path('cart.php'),
|
__DIR__ . '/../config/config.php' => config_path('cart.php'),
|
||||||
], 'config');
|
], 'cart-config');
|
||||||
|
|
||||||
|
$this->commands([
|
||||||
|
InstallCommand::class,
|
||||||
|
MakeCouponCommand::class,
|
||||||
|
MakeTaxCommand::class,
|
||||||
|
MakeShippingCommand::class,
|
||||||
|
MakeDriverCommand::class,
|
||||||
|
DebugCommand::class,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user