You can register service providers in the config/app.php configuration file that contains an array where you can mention the service provider class name.
A Filter hook in WordPress allows you get and modify WordPress data before it is sent to the database or the browser. Some examples of filters would include customizing how excerpts are displayed or adding some custom code to the end of a blog post or headings.