Created
November 5, 2025 09:44
-
-
Save podlom/14c42493c40b5b560a991cf8a8b2d729 to your computer and use it in GitHub Desktop.
Laravel Service Provider a Code Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // app/Providers/AppServiceProvider.php | |
| public function register() { | |
| $this->app->bind(PaymentGateway::class, StripePaymentGateway::class); | |
| } | |
| public function boot() { | |
| View::share('appName', config('app.name')); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment