I was looking for a way to remove one of my middlewares in testing. I could not find it, so I wrote a simple function to do it.
Put the following function in your 'TestCase.php'
I don't personally use it, but some might find it useful. Laravel 5 paginator accepts a custom presenter for the paginator. In case you don't want to create a class or want to edit HTML directly, try the following trick.