Created
April 15, 2023 18:00
-
-
Save aleksandertabor/9d0bcc7f59299a9e66d70d49fb7255a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Requires dependency: https://github.com/ralphjsmit/livewire-urls | |
if (!auth()->check()) { | |
$currentUrl = \RalphJSmit\Livewire\Urls\Facades\Url::current(); | |
Session::put('url.intended', $currentUrl); | |
$this->redirectRoute('login'); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment