Press "Enter" to skip to content

Recursion hell in blade

As a laravel developer, If you ever reached a situation where your website is just spinning with the loading in the browser tab, one of two things must have happened.

  1. There has been too much database query.
  2. Or, there is recursion happening.

Recursion means calling itself.

 

As you can see, you can apply it to function.

But particularly in laravel, it also tend to occur in blade templates (By necessity or by mistake).

For example.

Whats happening here is that it is extending itself. So, it will go inside loop where it will continuously extend itself until PHP execution time runs out.

So, if you ever run into this problem, check this situation too.

9 Comments

  1. Sling TV
    Sling TV November 12, 2018

    I’m not that much of a internet reader to be honest but your sites really
    nice, keep it up! I’ll go ahead and bookmark your site to come
    back down the road. All the best

  2. I’m really enjoying the design and layout of your website.

    It’s a very easy on the eyes which makes it much more enjoyable
    for me to come here and visit more often. Did you hire out a designer to create your theme?
    Fantastic work!

  3. Having read this I believed it was really informative. I appreciate you taking the
    time and energy to put this article together.

    I once again find myself spending way too much time both reading and leaving
    comments. But so what, it was still worth it!

  4. Just desire to say your article is as astounding. The clarity in your post is
    simply spectacular and i can assume you’re an expert on this subject.
    Fine with your permission allow me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please keep up the gratifying work.

  5. Sling TV
    Sling TV November 15, 2018

    I was curious if you ever thought of changing the layout of your website?
    Its very well written; I love what youve got to say. But maybe you could a
    little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or 2 images.
    Maybe you could space it out better?

  6. Sling TV
    Sling TV November 15, 2018

    Useful information. Lucky me I found your web site accidentally, and
    I am stunned why this accident didn’t came about earlier!
    I bookmarked it.

  7. Sling tv coupons and promo codes for november 2018
    We are a gaggle of volunteers and starting a new scheme in our
    community. Your site provided us with valuable info to work
    on. You’ve performed a formidable job and our whole group might be thankful to you.
    Sling tv coupons and promo codes for november 2018

  8. Wonderful article! That is the type of info that are supposed to be shared across the internet.
    Disgrace on the seek engines for no longer positioning this post upper!
    Come on over and consult with my website . Thanks =)

  9. Wow that was odd. I just wrote an very long comment but after I clicked submit my comment
    didn’t show up. Grrrr… well I’m not writing all that over again. Anyways, just wanted to say
    wonderful blog!

Leave a Reply

Your email address will not be published.