Skip to content

Commit

Permalink
Merge pull request #73 from openfoodfoundation/feature/multi-merchant
Browse files Browse the repository at this point in the history
Feature: Multiple merchants on a voucher set
  • Loading branch information
ok200paul authored Nov 29, 2024
2 parents 7406f4c + 2452b52 commit 11d9fa7
Show file tree
Hide file tree
Showing 29 changed files with 1,783 additions and 619 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Events\PersonalAccessTokens;

use App\Models\PersonalAccessToken;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -25,7 +26,7 @@ public function __construct(public PersonalAccessToken|SanctumPersonalAccessToke
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/TeamUsers/TeamUserWasCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Events\TeamUsers;

use App\Models\TeamUser;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct(public TeamUser $teamUser) {}
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/Teams/TeamWasCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Events\Teams;

use App\Models\Team;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct(public Team $team) {}
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Events\VoucherBeneficiaryDistributions;

use App\Models\VoucherBeneficiaryDistribution;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -22,7 +23,7 @@ public function __construct(public VoucherBeneficiaryDistribution $voucherBenefi
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/VoucherSets/VoucherSetWasUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Events\VoucherSets;

use App\Models\VoucherSet;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -22,7 +23,7 @@ public function __construct(public VoucherSet $voucherSet) {}
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/Vouchers/VoucherWasCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Events\Vouchers;

use App\Models\Voucher;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct(public Voucher $voucher) {}
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
Loading

0 comments on commit 11d9fa7

Please sign in to comment.