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

orchestral / workbench / 12029540670

26 Nov 2024 11:22AM UTC coverage: 93.787% (-0.4%) from 94.152%
12029540670

push

github

crynobone
Merge branch '8.x' into 9.x

7 of 8 new or added lines in 2 files covered. (87.5%)

317 of 338 relevant lines covered (93.79%)

10.08 hits per line

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

85.71
/src/Http/Controllers/Controller.php
1
<?php
2

3
namespace Orchestra\Workbench\Http\Controllers;
4

5
use Orchestra\Workbench\Workbench;
6

7
abstract class Controller extends \Illuminate\Routing\Controller
8
{
9
    /**
10
     * GEt redirect to path after logged in.
11
     */
12
    protected function redirectToAfterLoggedIn(): ?string
13
    {
14
        $start = Workbench::config('start') ?? '/';
1✔
15
        $hasAuthentication = Workbench::config('auth') ?? false;
1✔
16

17
        return match (true) {
1✔
18
            $hasAuthentication === true && $start === '/' => route('dashboard', absolute: false),
1✔
NEW
19
            $hasAuthentication === true => $start,
×
20
            default => $start,
1✔
21
        };
1✔
22
    }
23
}
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