Member Since 2 Years Ago

Experience Points

1,190 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
Best Reply Awards
Best Reply
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.


    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.


    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 2
8,810 XP
4 months ago
Activity icon

Replied to Generating JSON Responses From Collections Extremely Slow

Thanks both, we'll look in to those things. We've also hit upon something nice too for getting the query results back with the relationships in them as plain arrays in the first place, which is super fast in the response. Just need to work out what to try and make dynamic, what to cache and what to turn in to resources. Also looking at how to make the DB query idea we have found into a query method so it can be re-used.

Activity icon

Started a new Conversation Generating JSON Responses From Collections Extremely Slow

We use Laravel (and love it) on several large scale web applications, and a couple of them are now getting some large amounts of data being returned in some queries, and also more specifically, some heavily nested relationships. We have optimised all the queries etc to run this efficiently and are getting query times from the debug bar that we are (mostly) happy with.

However, then attempting to return those collections from our API to the front end is horrendously slow. A complex object for example that takes 0.8-1.2 seconds to load from the database is then taking a further 11 seconds to convert the collection in to an array to be returned as json to the front end API call. And this collection has only 1 item in it (just with lots of nested relationships).

Does anyone else experience this issue? If so, how have you gone about solving it? Right now we are working through and finding that we may need to change a large number of things to do all the relationships as separate flat items that we then get as arrays rather than collections and stitch back together, so was hoping to see if anyone knew of a better way to optimise this? It feels like this is probably something the whole community would benefit from if we can work it out!

Thanks in advance for any ideas!