Press "Enter" to skip to content

Not using these service providers in laravel, then lets not register them at all.

In laravel, every services are separated into separate composer packages. It is kept in such a way that, we can even use them separately in our own php projects.

Just like laravel using symfony components.

Check out this tutorial. It explains how to use eloquent ORM of laravel outside in your little vanilla PHP environment.

But more importantly, it gave us one capability. It is to leave out service providers that we do not need at all.

Like

  1. PasswordResetServiceProvider – Not needed if you are not providing password reset services.
  2. BroadcastServiceProvider – Not every app needs broadcasting services.
  3. ConsoleSupportServiceProvider – It is not used much in production environment.
  4. MailServiceProvider – Include this, only if you are sending out mails to your users.
  5. NotificationServiceProvider – Same as mail, this is not necessary if you are not dispatching any notifications.
  6. QueueServiceProvider – Queue is only necessary if there are time consuming tasks to be managed. If not, why include it at all.
  7. RedisServiceProvider – If you are not using redis services, why include at all.
  8. ViewServiceProvider – If you are into API, this service provider is not necessary at all.

Do not forget to comment out the respective facades too.

Everything is awesome.

11 Comments

  1. Sling TV
    Sling TV November 12, 2018

    My brother recommended I might like this web site.
    He was entirely right. This post truly made my
    day. You can not imagine just how much time I had spent for this
    info! Thanks!

  2. Asking questions are really pleasant thing if you are not understanding something completely, but this article gives fastidious understanding yet.

  3. Hello there I am so grateful I found your webpage,
    I really found you by error, while I was researching on Askjeeve for something
    else, Anyways I am here now and would just like to say many thanks for a fantastic post and a all round entertaining blog (I also
    love the theme/design), I don’t have time to read through it all at the minute but I have book-marked it and
    also added your RSS feeds, so when I have time I will be back to read much
    more, Please do keep up the excellent work.

  4. Sling TV
    Sling TV November 14, 2018

    We’re a group of volunteers and starting a brand new scheme in our community.
    Your web site provided us with valuable info to work on. You
    have done a formidable job and our whole group will probably be thankful to you.

  5. Sling TV
    Sling TV November 15, 2018

    I constantly spent my half an hour to read this web site’s content everyday
    along with a mug of coffee.

  6. Sling TV
    Sling TV November 15, 2018

    I’m not sure where you are getting your info, but great topic.

    I needs to spend some time learning more or understanding more.
    Thanks for excellent information I was looking for this information for my mission.

  7. I like the helpful information you provide in your articles.

    I will bookmark your blog and check again here regularly.
    I’m quite certain I will learn many new stuff right here!
    Best of luck for the next!

  8. Undeniably imagine that that you said. Your favorite justification seemed
    to be on the net the easiest factor to consider of.
    I say to you, I definitely get annoyed even as folks consider issues
    that they plainly don’t recognise about. You managed to hit the nail upon the top and also defined out the whole
    thing without having side effect , other folks can take
    a signal. Will probably be again to get more. Thank
    you

  9. continuously i used to read smaller articles which as well clear their motive,
    and that is also happening with this post which I am reading at this place.

Leave a Reply

Your email address will not be published.