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
How to create roles in Laravel and how to add roles to users in laravel tutorial. Learn how you can add roles to existing users in laravel easily, just by creating roles table and a pivot table, associating roles to users and vice versa.
Since Stripe doesn't provide a "proper" form for it's checkout, there is no easy way to use submit form functionality of PHPUnit to test submission of Stripe checkout form in order to purchase a subscription plan. This is how you can test Stripe subscription using PHPUnit