How do I register a service provider?



How do I register a service provider?..

Answer / 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

More Laravel PHP Framework Interview Questions

Explain about Form without CSRF token in Laravel ?

1 Answers  


How to make a helper file in laravel?

1 Answers  


What is make method?

1 Answers  


What is valet?

1 Answers  


What is rate limiting?

1 Answers  


What is use of middleware in laravel?

1 Answers  


Does laravel use mvc?

1 Answers  


What is the use of dd() function?

1 Answers  


What is the difference between echo print print_r and var_dump?

1 Answers  


Explain traits in laravel.

1 Answers  


What is the significant difference between insert() and insertgetid() function in laravel?

1 Answers  


How do I customize validation error messages for a form?

1 Answers  


Categories