Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 7, 2024
1 parent b48bc2b commit a1d3dbe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/factories/AddressFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function definition(): array
'phone' => $this->faker->phoneNumber(),
'postcode' => $this->faker->postcode(),
'state' => $this->faker->state(),
'tax_id' => Str::random()
'tax_id' => Str::random(),
];
}
}
24 changes: 24 additions & 0 deletions src/Events/OrderStatusChanged.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace Cone\Bazar\Events;

use Cone\Bazar\Models\Order;
use Illuminate\Foundation\Events\Dispatchable;

class OrderStatusChanged
{
use Dispatchable;

/**
* The order instance.
*/
public Order $order;

/**
* Create a new event instance.
*/
public function __construct(ORder $order)
{
$this->order = $order;
}
}
2 changes: 1 addition & 1 deletion src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Order extends Model implements Contract
protected $attributes = [
'currency' => null,
'discount' => 0,
'status' => self::PENDING,
'status' => self::ON_HOLD,
];

/**
Expand Down

0 comments on commit a1d3dbe

Please sign in to comment.