Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ MAIL_DRIVER=log
MAIL_MAILER=array
MAIL_FROM_ADDRESS="admin@laravel-inertia-template.test"
MAIL_FROM_NAME="${APP_NAME}"

PULSE_ENABLED=false
12 changes: 0 additions & 12 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
namespace App\Providers;

use App\Enums\Environment;
use App\Models\User;
use Filament\Tables\Table;
use Illuminate\Http\Client\RequestException;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
use Laravel\Pulse\Facades\Pulse;
use Spatie\Health\Checks\Checks\DatabaseCheck;
use Spatie\Health\Checks\Checks\DatabaseConnectionCountCheck;
use Spatie\Health\Checks\Checks\DebugModeCheck;
Expand Down Expand Up @@ -45,15 +43,5 @@ public function boot(): void
EnvironmentCheck::new(),
SecurityAdvisoriesCheck::new(),
]);

// @codeCoverageIgnoreStart
Pulse::users(function ($ids) {
return User::findMany($ids)->map(fn ($user) => [
'id' => $user->id,
'name' => $user->fullName,
'extra' => "{$user->email} ({$user->roles->pluck('name')->implode(', ')})",
]);
});
// @codeCoverageIgnoreEnd
}
}
12 changes: 0 additions & 12 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,12 @@

namespace App\Providers;

use App\Enums\Role;
use App\Models\User;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;

class AuthServiceProvider extends ServiceProvider
{
protected $policies = [
\Spatie\Permission\Models\Role::class => \App\Policies\RolePolicy::class,
\Spatie\Permission\Models\Permission::class => \App\Policies\PermissionPolicy::class,
];

public function boot(): void
{
// @codeCoverageIgnoreStart
Gate::define('viewPulse', function (User $user) {
return $user->hasRole(Role::SUPER_ADMIN);
});
// @codeCoverageIgnoreEnd
}
}
348 changes: 348 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

Binary file removed bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"inertiajs/inertia-laravel": "^2.0",
"laravel/framework": "^12.0",
"laravel/nightwatch": "^1.19",
"laravel/pulse": "^1.2",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
"laravel/wayfinder": "^0.1.5",
Expand Down
144 changes: 1 addition & 143 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 0 additions & 84 deletions database/migrations/0001_01_01_000006_create_pulse_tables.php

This file was deleted.