This commit is contained in:
Jonatan Rek 2024-09-10 15:17:13 +02:00
parent 79cb5ceb19
commit 881c89bfc1
3 changed files with 250 additions and 317 deletions

View File

@ -4,10 +4,15 @@ namespace App\Http\Controllers;
use SteelAnts\LaravelAuth\Traits\Authentication;
class AuthController
class AuthController extends Controller
{
use Authentication;
protected string $redirectTo = "maintenance.planned";
public function __construct()
{
$this->middleware('guest')->except('logout');
$this->middleware('auth')->only('logout');
}
}

View File

@ -44,6 +44,7 @@ class ScheduleNextMaintenance implements ShouldQueue
'start_at' => $nextRunTime,
'guestor_id' => $maintenance->guestor_id,
]);
$maintenancePlanned->refresh();
$hosts = $maintenance->hosts;

557
composer.lock generated

File diff suppressed because it is too large Load Diff