ARCHIVES January 2016

Basic authentication in Laravel route how-to

Sometimes you’d like to have very simple and basic authentication similar to HTTP basic authentication applied to a directory. For example you’d like to protect an API accessible under Obviously when using Laravel routes you can not use .htpasswd file to password protect it as the secret-api directory doesn’t exist on the server disk.…