Member Since 7 Years Ago
1,850 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Started a new Conversation Livewire - Testing Nested Components
Hoping for some guidance in how to go about testing livewire nested components (especially testing that page content has changed after emiting an event).
EG: In testing a standard component, we can do something like this:
Livewire::test(CreatePost::class) ->assertDontSee('Hooray the title is foo and I called create!'); ->set('title', 'foo') ->call('create') ->assertSee('Hooray the title is foo and I called create!');
But how would we assert that the text popped up in a child component due to an event that was fired?
Or (and more saliently for my current issue), how would I test that the value in an input field has updated after emiting an event?
Thanks in advance for any help!
Commented on Comments Component Testing
Hey Andre, thanks so much for the course! Loving this, and have been a big fan since I bought your "Useful Laravel Packages" way back when!
One thought on having to use the mounted $post - I "solved" it as I was working through by putting a check for isset($post->comments), and I'm wondering if it makes sense to do a check for comments since the code seems to assume they will be there?
Commented on What We Are Refactoring
Hey Jeffrey - thanks so much for these videos (and for this site in general - you're a literal life changer with the material you've made available here!!!)
Question for you - I noticed in your tests here, you mixed using Model Factories and using FeatureCollection::create(). Is there a heuristic you use to determine when to use which, or is it just "whatever's easiest when writing"? Any gotchas with eschewing the model factory?
@warren32 - I did what all great programers do when they face a minor inconvenience, and abandoned the idea! :D
The project I was researching this for didn't end up taking off, and so I put my attentions elsewhere. Sorry I can't be more help!