Skip to content

Commit

Permalink
👍 Subscribe ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Dec 25, 2023
1 parent e91afbc commit e776624
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### vv1.0.2
* :+1: Subscribe ajax
* :+1: Subscriber management
* :bug: Fix show via
* :+1: Update namespace

2 changes: 1 addition & 1 deletion src/NotificationAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function addAdminMenus(): void
public function addFrontendAjaxs(): void
{
$this->registerFrontendAjax(
'subscribes',
'subscribe',
[
'method' => 'POST',
'callback' => [SubscribeController::class, 'store'],
Expand Down
4 changes: 2 additions & 2 deletions src/Tests/Feature/SubscribeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public function testSubscribe(): void
$faker = \Faker\Factory::create();

$response = $this->post(
'ajax/subscribes',
'ajax/subscribe',
[
'email' => $faker->email,
'email' => $faker->email(),
]
);

Expand Down

0 comments on commit e776624

Please sign in to comment.