Middleware vs. Controller

If it is only used for that controller. just put it in the controller. if you want to use it in multiple controllers put it in a middleware.