Skip to content

Commit d5c5786

Browse files
[4.x]
1 parent 881e62f commit d5c5786

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"illuminate/view": "11.*|12.*"
3535
},
3636
"require-dev": {
37-
"orchestra/testbench": "9.*|10.*",
37+
"orchestra/testbench": "^9.15.0|10.*",
3838
"inertiajs/inertia-laravel": "^2.0"
3939
},
4040
"autoload": {

src/Console/Commands/AlertCreateCommand.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,18 @@ class AlertCreateCommand extends GeneratorCommand implements PromptsForMissingIn
4545

4646
/**
4747
* Execute the console command.
48-
*
49-
* @return void
5048
*/
51-
public function handle(): void
49+
public function handle(): bool
5250
{
5351
if (parent::handle() === false && ! $this->option('force')) {
54-
return;
52+
return false;
5553
}
5654

57-
if ($this->withoutView()) {
58-
return;
55+
if (!$this->withoutView()) {
56+
$this->writeBladeView();
5957
}
6058

61-
$this->writeBladeView();
59+
return true;
6260
}
6361

6462
/**

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Tests;
44

5-
use Inertia\ServiceProvider;
5+
use Inertia\ServiceProvider as InertiaServiceProvider;
66
use Laragear\Alerts\AlertsServiceProvider;
77
use Laragear\Alerts\Facades\Alert;
88
use Orchestra\Testbench\TestCase as BaseTestCase;
@@ -18,6 +18,6 @@ protected function getPackageAliases($app): array
1818

1919
protected function getPackageProviders($app): array
2020
{
21-
return [AlertsServiceProvider::class, ServiceProvider::class];
21+
return [AlertsServiceProvider::class, InertiaServiceProvider::class];
2222
}
2323
}

0 commit comments

Comments
 (0)