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

orchestral / workbench / 12111218754

02 Dec 2024 01:51AM UTC coverage: 93.842% (-2.8%) from 96.629%
12111218754

push

github

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

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

154 of 169 new or added lines in 19 files covered. (91.12%)

320 of 341 relevant lines covered (93.84%)

10.45 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') ?? '/';
2✔
15
        $hasAuthentication = Workbench::config('auth') ?? false;
2✔
16

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

© 2025 Coveralls, Inc