adspace


How do I register a service provider?

Answer Posted / Prem Lata

To register a service provider in Laravel, create a new PHP class that extends the ServiceProvider abstract class, and then boot and bind methods as needed. Afterward, add the path to your service provider to the providers array within the AppServiceProvider.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is current stable version of laravel?

870


Do you know what version of laravel do you generally use?

839


What is latest version of laravel?

869


Tell us have you used lumen before?

808


How much laravel experience do you have?

815