• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LeTraceurSnorkLibrary / MessSaga / 24340325874

13 Apr 2026 11:12AM UTC coverage: 27.903% (-2.6%) from 30.539%
24340325874

Pull #18

github

web-flow
Merge 7a189b893 into 572b42cbd
Pull Request #18: feat: admin panel

0 of 144 new or added lines in 8 files covered. (0.0%)

1 existing line in 1 file now uncovered.

459 of 1645 relevant lines covered (27.9%)

0.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Http/Middleware/HandleInertiaRequests.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Http\Middleware;
6

7
use App\Models\User;
8
use Filament\Facades\Filament;
9
use Illuminate\Http\Request;
10
use Inertia\Middleware;
11

12
class HandleInertiaRequests extends Middleware
13
{
14
    /**
15
     * The root template that is loaded on the first page visit.
16
     *
17
     * @var string
18
     */
19
    protected $rootView = 'app';
20

21
    /**
22
     * Determine the current asset version.
23
     */
24
    public function version(Request $request): ?string
25
    {
26
        return parent::version($request);
×
27
    }
28

29
    /**
30
     * Define the props that are shared by default.
31
     *
32
     * @return array<string, mixed>
33
     */
34
    public function share(Request $request): array
35
    {
NEW
36
        $user = $request->user();
×
37

38
        return [
×
39
            ...parent::share($request),
×
40
            'auth' => [
×
NEW
41
                'user' => $user,
×
NEW
42
            ],
×
NEW
43
            'filament' => [
×
NEW
44
                'adminPanelUrl' => $user instanceof User && $user->canAccessPanel(Filament::getPanel('admin'))
×
NEW
45
                    ? Filament::getPanel('admin')->getUrl()
×
NEW
46
                    : null,
×
47
            ],
×
48
        ];
×
49
    }
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc