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, Just a quick sharing on how to setup SQLite in Laravel Dusk. Just update the createApplication() method in tests/DuskTestCase.php: Now you should have it works with SQLite. Reference Thanks!
Assalamualaikum / Hi, I will share how to write custom Artisan Commands with Test included. Part 1 First, create your custom command with php artisan make:command ReloadCacheCommand. Then open up the class located at app/Console/Commands and use the following code. Basically this command will clear all available caches in Laravel application and cache it back.… Read More »