Create an invoke function in one step Create an invoke function in one step and you are surely familiar with the use of the invoke function in the Single Task Controller:- php artisan make:controller TestController --invokable --------------------------------------------------------------