briankidd

briankidd

Member Since 5 Years Ago

Lynchburg VA

Experience Points
53,000
Total
Experience

2,000 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
739
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    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 11
53,000 XP
May
25
4 days ago
Activity icon

Replied to How To Access $store (vueX) From A Validation Constant In Javascript ?

If you set Vue to use Vuex in app.js, you should be able to use this.$store.

May
23
6 days ago
Activity icon

Replied to How To Add ReturnPath

What exactly are you trying to do?

Activity icon

Replied to Parent Child Order Is Mismatch After Array Convert To Json?

If you are working with an array, you should be able to use array_values to rekey array. Likewise, if your query is returning a collection, you could call values() on the collection. I’m assuming you’re executing a raw query from the database and not using Eloquent/ QueryBuilder? I don’t recall having this issue with my query results but maybe I’m overlooking something. Hope this helps.

Activity icon

Replied to Prevent Other Listeners During Tests

Okay, I was just making sure there wasn’t something I was missing. Not really a problem that the other listeners are being handled but didn’t want them to if those aren’t what is under test during that time.

May
22
1 week ago
Activity icon

Replied to Prevent Other Listeners During Tests

Yes, I call handle() on the listener directly when I am checking the functionality of the listener but a test like that can pass without me ever registering the listener for the event.

I guess I'm not opposed to checking a list of listeners for the event to ensure it is there but that doesn't feel quite right.

Thanks for the reply.

Activity icon

Started a new Conversation Prevent Other Listeners During Tests

For event listeners, I include a test to ensure I have the listener registered for the event - here's an example:

/** @test */
    function was_called_when_stripe_invoice_payment_succeeded_fired()
    {
        $listener = Mockery::spy(ClearConversionRequests::class);
        app()->instance(ClearConversionRequests::class, $listener);

        event(new StripeInvoicePaymentSucceeded($this->user->currentTeam, $this->cashierInvoice));

        $listener->shouldHaveReceived('handle')->with(Mockery::on(function ($event) {
            return $event->team->is($this->user->currentTeam);
        }));

    }

I don't fake the event in this case because I'm testing for the listener being triggered. However, I don't want other listeners that are registered for this event to fire. What is the best way to do this? In the past, I've also mocked those listeners and registered them in the container but I want to believe there is a better way. Thanks