use of middleware in custom package devlopment in laravel

Viewed 405

I want to build packages in which I want to make middleware which validate data from different services(different project) by just installing that package.
what is a step to making this type of command and publish in any project?
I read the document. I understand that how to make view(loadViewFrom), route(loadRouteFrom) but didn't find any methods for middleware like loadViewFrom, loadRouteFrom. and how to publish that packages.

1 Answers
Related