Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Last active January 4, 2018 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fhferreira/2c179148035b9fcc681c5581b27d12db to your computer and use it in GitHub Desktop.
Save fhferreira/2c179148035b9fcc681c5581b27d12db to your computer and use it in GitHub Desktop.
Logout of Auth Basic on Laravel
<?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