Assalamualaikum / Hi, If you are working on a package, have a middleware and you want to write a unit test for it. Assuming you have the following middleware: So how you going to test it? The following gist, explained the setup. With this approach, we test just the middleware it self. Not related to… Read More »
Assalamualaikum / Hi, It’s been a while since I stumble upon an API, which have custom Accept header. For a past few days, I have a chance to implement custom header on one of my client project. Here is how I did – create a middleware to filter the coming request. As you can see… Read More »
Continue from previous post, next we going to setup the middleware in order to check either the user already activate the account or not. If user already activate the account, allow to enter our application, else redirect to request for another activation e-mail.