Skip to content

Commit 6592949

Browse files
authored
Remove Pulse (#111)
* Remove files * Remove Pulse * Update AppServiceProvider.php * Delete bun.lockb * Create bun.lock
1 parent 7504c03 commit 6592949

File tree

8 files changed

+349
-254
lines changed

8 files changed

+349
-254
lines changed

.env.testing

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ MAIL_DRIVER=log
2323
MAIL_MAILER=array
2424
MAIL_FROM_ADDRESS="admin@laravel-inertia-template.test"
2525
MAIL_FROM_NAME="${APP_NAME}"
26-
27-
PULSE_ENABLED=false

app/Providers/AppServiceProvider.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
namespace App\Providers;
44

55
use App\Enums\Environment;
6-
use App\Models\User;
76
use Filament\Tables\Table;
87
use Illuminate\Http\Client\RequestException;
98
use Illuminate\Http\Resources\Json\JsonResource;
109
use Illuminate\Support\Facades\URL;
1110
use Illuminate\Support\Facades\Vite;
1211
use Illuminate\Support\ServiceProvider;
13-
use Laravel\Pulse\Facades\Pulse;
1412
use Spatie\Health\Checks\Checks\DatabaseCheck;
1513
use Spatie\Health\Checks\Checks\DatabaseConnectionCountCheck;
1614
use Spatie\Health\Checks\Checks\DebugModeCheck;
@@ -45,15 +43,5 @@ public function boot(): void
4543
EnvironmentCheck::new(),
4644
SecurityAdvisoriesCheck::new(),
4745
]);
48-
49-
// @codeCoverageIgnoreStart
50-
Pulse::users(function ($ids) {
51-
return User::findMany($ids)->map(fn ($user) => [
52-
'id' => $user->id,
53-
'name' => $user->fullName,
54-
'extra' => "{$user->email} ({$user->roles->pluck('name')->implode(', ')})",
55-
]);
56-
});
57-
// @codeCoverageIgnoreEnd
5846
}
5947
}

app/Providers/AuthServiceProvider.php

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

33
namespace App\Providers;
44

5-
use App\Enums\Role;
6-
use App\Models\User;
75
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8-
use Illuminate\Support\Facades\Gate;
96

107
class AuthServiceProvider extends ServiceProvider
118
{
129
protected $policies = [
1310
\Spatie\Permission\Models\Role::class => \App\Policies\RolePolicy::class,
1411
\Spatie\Permission\Models\Permission::class => \App\Policies\PermissionPolicy::class,
1512
];
16-
17-
public function boot(): void
18-
{
19-
// @codeCoverageIgnoreStart
20-
Gate::define('viewPulse', function (User $user) {
21-
return $user->hasRole(Role::SUPER_ADMIN);
22-
});
23-
// @codeCoverageIgnoreEnd
24-
}
2513
}

bun.lock

Lines changed: 348 additions & 0 deletions
Large diffs are not rendered by default.

bun.lockb

-120 KB
Binary file not shown.

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"inertiajs/inertia-laravel": "^2.0",
1010
"laravel/framework": "^12.0",
1111
"laravel/nightwatch": "^1.19",
12-
"laravel/pulse": "^1.2",
1312
"laravel/sanctum": "^4.0",
1413
"laravel/tinker": "^2.9",
1514
"laravel/wayfinder": "^0.1.5",

composer.lock

Lines changed: 1 addition & 143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/migrations/0001_01_01_000006_create_pulse_tables.php

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)