Member Since 1 Year Ago

Experience Points

3,870 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-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-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-token Created with Sketch.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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 1
1,130 XP
2 weeks ago
2 weeks ago
Activity icon

Started a new Conversation Promise: Wait For This.$auth.check() To Evaluate


I want to do a certain action based on if the user is authenticated or not. The thing is, if I put a simple if statement that checks

if (this.$auth.check()) { ... } else { ... }

It always goes to the else statement because this.$auth.check() takes a minute or two to evaluate. I am not familiar with Promises and what not so I was wondering how I could let the function wait for the this.$auth.check() to potentially be true.

var authenticated = await this.$auth.check()

I tried the above but it didn't work..

Any help is appreciated.

1 month ago
Activity icon

Started a new Conversation Dynamic Render Function In Vue Instance Based On Authentication


I'm adding JWT authentication to my Vue app and I have my Login.vue and App.vue seperated which means that I don't want to render the App.vue when the user is not logged in.

new Vue({
    render: function (app) {
        if (this.$auth.check()) {
            return app(App);
        } else {
            return app(Login);

This works but since


Takes a second to load you see the Login app being rendered for a second and then it switches to the App. How can I fix this? I think I should use await but I can't get it to work properly.

3 months ago
Activity icon

Started a new Conversation Best Practice For Models With Lots Of Relations/calculations

I am building a SPA application using Vue/Laravel. It is a financial application with a lot of models two of which are important for this matter, namely Users and Transactions. A Transaction can be booked on a User which mutates the 'balance' property of the User. It is possible that there will be hundreds of Users each of them with at least a hundred Transactions booked on them.

I was wondering what the best architecture for this project would be.

I have two options in mind:

  1. Add a 'balance' property to the User's table and update this property every time (more code and bugs)
  2. Add a 'balance' property as a getter method to the User model and calculate it's balance everytime the user is fetched (less code/bugs but worse performance)

When using method 2, I quickly found out that fetching all users took quite a bit (3-4 seconds with just 30 users and 500 transactions). Maybe my code is inefficient? The getter method was just something like

foreach ($this->transactions() as $transaction) { $total += $transaction->amount; }

The balance would be updated quite often so caching the result of 2 wouldn't help a lot because I'd have to flush the cache everytime a transaction is booked/created/updated.

3 months ago
Activity icon

Started a new Conversation Eloquent: Opposite Of Sum

I want the opposite of


So that it doesn't add but instead subtracts the property of all models.