JeffreyWay

JeffreyWay

Owner at Laracasts

Member Since 6 Years Ago

Chattanooga, TN

Experience Points
482,390
Total
Experience

0 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
331
Lessons
Completed
Best Reply Awards
360
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 50
482,390 XP
Sep
18
3 days ago
Activity icon

Commented on Testing Billable Registration

There are test keys you can use that disables recaptcha for your local or test environments. That's what I'd do.

Sep
16
5 days ago
Activity icon

Commented on Upgrade The Laracasts Codebase To Laravel 8

Hmm, unless you're doing long network requests, 2 seconds per test is sllloooooow. I don't use Docker, so can't help much there. Most of my tests hit the database and use the DatabaseTransactions trait to roll everything back at the end of the test.

Activity icon

Commented on Upgrade The Laracasts Codebase To Laravel 8

Good to know!

Yeah, a little tricky doing the forks in this video when I knew they'd be updated any day. At least it's somewhat useful for future reference.

Sep
14
1 week ago
Activity icon

Commented on Upgrade The Laracasts Codebase To Laravel 8

I believe that's the sempro/phpunit-pretty-print package.

Activity icon

Replied to Laracasts Deleted All My Reply ?

I deleted your thread because it's a customer support request...not a general forum discussion.

Sep
08
1 week ago
Activity icon

Commented on Twitter Clone Setup

@mmickells That's a temporary Composer-specific issue. You haven't done anything wrong. They'll hopefully fix that soon. I'm experiencing it, too.

Activity icon

Commented on Squash A Massive Migrations Folder

Definitely.

Activity icon

Commented on Squash A Massive Migrations Folder

Yes, you'd commit the schema. I wouldn't bother with this command unless I have many, many migrations. In the case of Laracasts, like I mentioned in this video, I'd dump the schema and prune at the same time.

Activity icon

Commented on Squash A Massive Migrations Folder

Hmm, this should have been fixed. Are you on the dev release from a few days ago? Or is this after a fresh install?

Sep
01
2 weeks ago
Activity icon

Commented on Top Navs

There's no shortage of "building a webpage with CSS" tutorials on the web. This series is exclusively for Tailwind users.

Activity icon

Commented on Top Navs

Oof, I'm an idiot. Sorry, folks! I was uploading multiple series today and got mixed up.

Aug
27
3 weeks ago
Activity icon

Commented on Reaching Into Iframes

Quick Note: If you're loading an iframe src from an external site, you'll likely want to use the Chrome driver and add...

{ "chromeWebSecurity": false }

...to your cypress.json file.

Aug
24
4 weeks ago
Activity icon

Commented on TodoMVC With Alpine: Part 3

The todoStore could be imported into a module, but the Alpine component, itself, would need to remain global.

Aug
20
1 month ago
Activity icon

Commented on TodoMVC With Alpine: Part 2

That's part of the next episode.

Aug
19
1 month ago
Activity icon

Commented on TodoMVC With Alpine: Part 2

Yeah, that's on my list for the final episode.

Activity icon

Commented on TodoMVC With Alpine: Part 1

Yeah, we fix that in the final part.

Aug
14
1 month ago
Activity icon

Commented on Command And Assertion Essentials

An end-to-end test to should mimic the way an actual user would interact with your system. So you won't typically swap things in and out of the container.

Instead, Cypress offers cy.server() which can be useful for mocking specific endpoints. We'll review it later in this series.

Activity icon

Replied to Why I Make Test To My Projects ?

Tests encourage refactoring. Without them, it's simply too dangerous to refactor a piece of code that is now in production? What if you make a mistake? What if the changes looks right, but it breaks some odd edge-case that you solved a year ago?

You don't have to follow TDD, but, excluding the most trivial of projects, you absolutely need tests for your codebase.

Aug
12
1 month ago
Activity icon

Commented on Expanding The Timeline

$friends = $this->follows()->pluck('id');

^ Find all the users that the current person follows. But we don't want the full User model; we only care about the user's id. So we'll "pluck" the id column.

return Tweet::whereIn('user_id', $friends)

^ Give me only the tweets where the user_id (the person who created the tweet) is in the list of $friends that we fetched earlier. Remember, we don't want all tweets in the database. We only care about the tweets from our friends.

->orWhere('user_id', $this->id)

^ We also want to see our own tweets, so let's add that to the query as well.

->latest()

^ Order the results in descending order according to the created_at timestamp. This means the most recent tweets show up first, which makes sense.

->get()

^ My query is ready to go, so let's execute and "get" the results.

Aug
11
1 month ago
Activity icon

Replied to @stack Functionality When Using Components Instead Of Layouts

I think @push should work in a component. Are you sure about that?

Alternatively, you can set up slot for your scripts area.

{{ $scripts ?? '' }}
</body>
</html>

And then:

<x-master title="Foobar">
	<x-slot name="scripts">
		<script src=""></script>
	</x-slot>
</x-master>
Aug
06
1 month ago
Activity icon

Commented on Recaptcha Component

What I like most about Blade components in Laravel 7 is when you combine them with Tailwind and Alpine.

Activity icon

Commented on Recaptcha Component

Mono-lisa

Jul
30
1 month ago
Activity icon

Commented on Spam Detection

Not expensive.

Activity icon

Commented on Rapid Laravel And Cypress Setup

I don't plan to. They're different frameworks for writing browser tests. Both good.

Activity icon

Replied to What The Heck Is With The New Human Check On Laracasts?

Sorry, guys. Just a cache issue that didn't pick up the changes from yesterday.

Go back to the what is 4 + 1. just a suggestion.

It turns out that much of the world knows the answer to 4 + 1. If you don't know how to create a PHP variable, you're probably not ready to participate in this forum.

Jul
22
1 month ago
Activity icon

Commented on Nested Layout Files With Components

It sounds like you're not including the component properly. If you share the code you used, we can help.

Jul
21
2 months ago
Activity icon

Commented on How And When To Extract Component Logic

That's odd.

https://github.com/alpinejs/alpine#x-for

If you share the code you're using, we might be able to help more.

Jul
17
2 months ago
Activity icon

Awarded Best Reply on No Replies Yet

Hmm, odd. I haven't changed anything. Well, I'll keep an eye on it.

Activity icon

Replied to No Replies Yet

Hmm, odd. I haven't changed anything. Well, I'll keep an eye on it.

Activity icon

Replied to No Replies Yet

More information please. What's the problem?

Jul
16
2 months ago
Activity icon

Commented on Controller Cleanup

@bernardwiesner I'm fine with that living in the controller.

Activity icon

Commented on Pass Request Data To Views

Thanks!!

Jul
13
2 months ago
Activity icon

Awarded Best Reply on Ruby Markup

Sorry if I missed something, but not sure what the question is.

Update: Nevermind, I see what you mean. Fixing.

Activity icon

Replied to Ruby Markup

Sorry if I missed something, but not sure what the question is.

Update: Nevermind, I see what you mean. Fixing.

Jul
03
2 months ago
Activity icon

Awarded Best Reply on Allowed Memory Size Of 1610612736 Bytes Exhausted (tried To Allocate 4096 Bytes)

Hmm, did you restart PHP?

Do you still have an issue if you change memory_limit to -1?

memory_limit = -1

Also, you might try running php --ini and checking if there's an additional parsed .ini file. Something like php-memory-limits.ini.

Jul
01
2 months ago
Activity icon

Replied to Allowed Memory Size Of 1610612736 Bytes Exhausted (tried To Allocate 4096 Bytes)

Hmm, did you restart PHP?

Do you still have an issue if you change memory_limit to -1?

memory_limit = -1

Also, you might try running php --ini and checking if there's an additional parsed .ini file. Something like php-memory-limits.ini.

Jun
24
2 months ago
Activity icon

Replied to Is There A Podcast Playlist?

No, there isn't. Honestly, I more expect folks to listen to the podcast using a dedicated player on their phones, like Overcast.

Activity icon

Commented on How And When To Extract Component Logic

I don't think so.

The primary benefit would be for general organization.

Jun
22
2 months ago
Activity icon

Commented on Two-Way Data Binding

Yep ^

Activity icon

Replied to Laravel -error

I'm thinking it might be a good idea to provide more information...

Activity icon

Commented on Mobile Nav Link Component

That's called Emmet. Look for a keymap like, "Surround with Emmet."

Jun
19
3 months ago
Activity icon

Commented on Let's Build A Memory Game

Can you paste your source code?

Activity icon

Commented on Mobile Nav Link Component

I can think of a hundred other performance-related issues to worry about before that.

Jun
18
3 months ago
Activity icon

Commented on Tabs Component

P.S. Have a look at the source code for the episode if you want to see all the relevant ARIA attributes.

https://gist.github.com/JeffreyWay/d5d86f48a527d3c3819a67cfb793926d

Jun
16
3 months ago
Activity icon

Commented on Mobile Nav Link Component

Add a class of md:hidden to your dropdown menu.

Activity icon

Commented on Data Binding

It's called "Embedded Web Browser," by starxg.

That said, I don't really use it in my day-to-day coding. It's buggy and only useful for quick screencast demos.

Jun
15
3 months ago
Activity icon

Commented on Nav Link Component

Yes.

Jun
12
3 months ago
Activity icon

Commented on Let's Build A Memory Game

Haha, yeah, but I did add it to the source code.

https://gist.github.com/JeffreyWay/715d41f097bd1e4629f817f93886ae70

A simple enough way is to do:

let cards = ['...'].sort(() => Math.random() - .5);
Jun
04
3 months ago
Activity icon

Commented on Form Component

The only reason why I set the action's default to an empty string is because that's valid. Having an action of an empty string will default the submission URL to the page the browser currently has loaded. That may be what you want.

But yeah, if you don't want to allow that, your snippet is useful.

Jun
03
3 months ago
Activity icon

Commented on Flash Component

You could do either in this case. 👍