Tag Archives: test

Laravel: Write Artisan Command with Test

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 »