Category: Laravel, PHP, javascript

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
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners