Skip to content

Commit

Permalink
Add import to example usage and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Dec 14, 2023
1 parent 2d3b1b2 commit 84f90a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ namespace App\Events;

use App\Order;
use DevPro\GA4EventTracking\ShouldBroadcastToAnalytics;
use DevPro\GA4EventTracking\GA4;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

Expand Down
4 changes: 2 additions & 2 deletions src/Http/StoreClientIdInSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class StoreClientIdInSession
/**
* Stores the posted Client ID in the session.
*/
public function __invoke(Request $request, ClientIdSession $clientIsSession): JsonResponse
public function __invoke(Request $request, ClientIdSession $clientIdSession): JsonResponse
{
$data = $request->validate(['client_id' => 'required|string|max:255']);

$clientIsSession->update($data['client_id']);
$clientIdSession->update($data['client_id']);

return response()->json();
}
Expand Down

0 comments on commit 84f90a0

Please sign in to comment.