A blog on PHP, JavaScript and more Amit Merchant · July 20, 2020 · ⋆ Laravel Sometimes, you want to load some stuff based on the fact that the certain service provider is loaded in the providers array of config/app.php or not. For instance, if you’re using some third-party package and want to display certain things if and only if the service provider of that package is loaded.
This PR adds a method isProviderLoaded() in src/Illuminate/Foundation/Application.php which lets you check if the given service provider is loaded or not like so.
Follow me on Twitter @amit_merchant Check if the specific service provider is loaded or not in Laravel Push to newly created branch without creating an upstream branch in Git Using Chrome DevTools as a secret code editor Make function parameters required in vanilla JavaScript Proposed named arguments in PHP 8