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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners