Last active
January 4, 2018 10:23
-
-
Save fhferreira/2c179148035b9fcc681c5581b27d12db to your computer and use it in GitHub Desktop.
Logout of Auth Basic on Laravel
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 | |
Route::get('logout-basic', function() { | |
return Redirect::to(preg_replace("/:\/\//", "://log-me-out:fake-pwd@", url('/'))); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment