Bumped into a problem while trying to authorize user against laravel basic auth middleware when testing a REST API through phpunit. I used phpunit call method to send a POST request to API's endpoint which needed users basic HTTP authentication. Every time, laravels basic auth middleware rejected it and I had no idea why, since I've sent proper HTTP Authorization header with phpunit call. Here is the solution ! Read more on http://laravel.io/forum/03-20-2014-authbasic-fails
In this tutorial we will be creating a simple token based api for manipulating a note resource.
10 Introduction to Testing in Laravel
HTTP Headers - What are they The HTTP protocol is made up of many parts; in this video I wanted to give a little info about the HTTP Header which is transmitted on request and response. I hope to give you a little insight into a part of HTTP so that when you are viewing pages you have a little more insight into what is happening. Look out for future videos which I hope to include other parts of what is in your HTTP communications
Testing Laravel Using PhpStorm Integrated Testing Feature