JeffreyWay

JeffreyWay

Member Since 5 Years Ago

Chattanooga, TN

Owner at Laracasts

Experience Points 466,920
Experience Level 50

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 289
Lessons
Completed
Best Reply Awards 346
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    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.

19 Aug
2 days ago

JeffreyWay commented on Core Concepts: Service Providers

Yep, done. 👍

18 Aug
3 days ago

JeffreyWay commented on One-to-Many

Thanks, everyone!

JeffreyWay left a reply on Noob Here

I agree. Ditch it if you can and write your forms manually.

16 Aug
5 days ago

JeffreyWay left a reply on Updating DOM After AJAX Inserts Updated Element

If I understand you correctly, it's because the event handlers are no longer attached after you update the DOM. Event delegation is the solution.

https://learn.jquery.com/events/event-delegation/#event-propagation

JeffreyWay left a reply on Updating DOM After AJAX Inserts Updated Element

I'm not sure what you mean. If it correctly updates the #myDiv element, then the DOM has been updated.

JeffreyWay left a reply on How Edit A Reply Fills Markdown In Laracasts Forum Model

@erikverbeek is correct. The Markdown conversion is done on the server-side. I use the CommonMark Composer package.

JeffreyWay left a reply on Node_modules Folder

Sure. You can always generate it again when/if you need to.

15 Aug
6 days ago

JeffreyWay left a reply on OOP Bootcamp - Lesson 5

The constructor method on your Staff class is protected. That's why you're seeing that error. Change it to:

public function __construct($members = [])
{
    $this->members = $members;
}
13 Aug
1 week ago

JeffreyWay commented on Filtering Aggregated Data

Here's the final SQL query from this episode:

select title, sum(amount) sales, count(*) rentals 
from rental
join payment 
on payment.rental_id = rental.rental_id
join inventory
on inventory.inventory_id = rental.inventory_id
join film 
on film.film_id = inventory.film_id
group by film.film_id
having sales > 200
order by sales desc
09 Aug
1 week ago

JeffreyWay commented on Multiple Joins In One Query

Yes, views will be covered later in the series.

JeffreyWay commented on Core Concepts: Service Container And Auto-Resolution

It's a cornerstone of building apps in Laravel. You 100% need to know it.

08 Aug
1 week ago

JeffreyWay commented on The Strategy And Factory Patterns

At some point, you must write logic to decide which strategy to use. The key is to bubble up that logic as high as you can go. You can even move it to a dedicated factory class. Then, if you do have a new strategy, you simply update the factory class and you're good to go.

06 Aug
2 weeks ago

JeffreyWay commented on The Example MySQL Database

I think TablePlus is excellent, too. For the Sequel Pro issues, try pulling in the nightly builds.

https://sequelpro.com/nightly

05 Aug
2 weeks ago

JeffreyWay commented on You May Only View Your Projects

As you noted, Laravel recently introduced a change to make the primary key for all new table migrations a type of BIGINT. This means every foreign key you create should also have a type of BIGINT.

$table->unsignedBigInteger('post_id');

JeffreyWay commented on The Skeleton

You can use whatever you want. Yarn offered significant performance improvements at the time, which is why so many people switched over. That's not so much the case anymore. NPM is great.

03 Aug
2 weeks ago

JeffreyWay commented on Foreign Key Constraints

Nah - they're the perfect examples that anyone can instantly understand.

02 Aug
2 weeks ago

JeffreyWay left a reply on [Laracasts.com] Notifications Aren't Working

Should be fixed now. Thanks.

31 Jul
3 weeks ago

JeffreyWay commented on Workshop - FAQs

Subscribers don't see ads. Only guests.

29 Jul
3 weeks ago

JeffreyWay left a reply on Laracasts "Browse"

No design change. I only changed the nav link from Browse to Search. If you want the newest episodes first, either click "Episode" in the sidebar, or choose the "What's New" link under your avatar in the top right.

27 Jul
3 weeks ago

JeffreyWay left a reply on Upgrading From Yearly To Lifetime

@omario169 Send a quick support request and I'll set you up. http://laracasts.com/support

24 Jul
4 weeks ago

JeffreyWay left a reply on Print Tutorial

I don't do anything special for that. At the bottom of the page, I have:

<script>
    window.print();
</script>
23 Jul
4 weeks ago

JeffreyWay commented on An Alternative To Magic Numbers

Yes. You're assigning a name to an important number in your system.

JeffreyWay left a reply on Laravel Mix Extremly Slow

@adrianwix Yeah, something odd is going on there. When using npm run watch on the Laracasts codebase, everything recompiles within a second or two. Can you, one by one, comment out each call in your webpack.mix.js file to pinpoint where the hangup is?

JeffreyWay commented on Tabs

Yep, I have that on my list for this series. :)

JeffreyWay commented on Tabs

It would return the first child that has the active prop set to true.

JeffreyWay left a reply on Push To An Array Inside An Array?

Glad you got it figured out, @drewdan. :)

22 Jul
4 weeks ago

JeffreyWay left a reply on Push To An Array Inside An Array?

It's because, in your first snippet, this.options.option is an array, but you're treating it as an object: this.options.option.optionValue. That won't work. Do:

this.options.option[0].optionValue.push({
    value: 'another value',
    price: '1000',
});

JeffreyWay left a reply on Laravel Without Taking Advantage Of Vue

Of course it's okay. There's a million different ways to build a website. :)

18 Jul
1 month ago

JeffreyWay left a reply on Compiling Assets On Production

If you're seeing that error, the mix-manifest.json file is not in your public/ directory. Can you find that file?

JeffreyWay commented on Avoid Flags

Thanks!

17 Jul
1 month ago

JeffreyWay left a reply on Best Way To Test An Eloquent Model Method Which Calls A Static Method On The Same Class?

Ugh - well I just answered a question from October, 2015. Hope it helps @webspanner. ðŸĪŠ

JeffreyWay left a reply on Best Way To Test An Eloquent Model Method Which Calls A Static Method On The Same Class?

There's no need to mock it.

class MyEloquentModelTest extends TestCase
{
    public function test_foo_method_returns_correct_value() 
    {
            $model = new MyEloquentModel;
            
            $this->assertEquals('hello world', $model->foo('hello'));
        }
    }
}

JeffreyWay commented on Avoid Flags

I don’t think we should write code with the assumption that everyone around us is using an IDE.

16 Jul
1 month ago

JeffreyWay commented on Avoid Flags

Yeah that's good, too. 👍 The main goal was to remove the flag.

But if "temporary mute" is a thing, I'd rather see that terminology represented in the code. The added benefit is the caller no longer needs to be responsible for declaring (and remembering) how long a temporary mute lasts.

$john->muteTemporarily($kate);

JeffreyWay commented on ES6 Compilation With Laravel Elixir

Any of them will get the job done. But these days, webpack is the industry standard. Laravel Mix (the successor to Laravel Elixir) can help you get started. https://laracasts.com/series/learn-laravel-mix

13 Jul
1 month ago

JeffreyWay commented on An Alternative To Magic Numbers

Yeah, good point about the 2100. Forgot to update that one.

12 Jul
1 month ago

JeffreyWay commented on Task UI Updates: Part 2

It has been a while since I recorded this episode, but I think the project relationship was already eager loaded. So no extra database query. Otherwise, yes you can absolutely use the project_id field instead. Good eye.

JeffreyWay left a reply on Add Certification On LinkedIn

@arbex10 We don't offer any form of certification at Laracasts.

JeffreyWay left a reply on Laracasts Discussions - Issues

@nakov

I reply on a Thread, if I then edit my answer on my profile page I will still see the original reply instead of the edited one.

I have a larger refactor to the profile timeline in the works. This issue will be fixed as part of that update. Coming soon.

If I reply on a thread, then I edit that reply, once I save and edit again then the last changes are not available unless I refresh the page and edit again.

Thanks for letting me know. Fixed.

11 Jul
1 month ago

JeffreyWay commented on Drop Down A Level

Yes. But in this case, that would never happen. It will always be an email.

JeffreyWay commented on How To Dynamically Inline SVG Files In Vue Components

If you want to adjust the SVG based on user interaction, you'll need to inline it.

02 Jul
1 month ago

JeffreyWay commented on Be Strict With Your Controllers

If the project only calls the method once in the entire application, there's not much benefit to it being a query scope. In those cases, I'll sometimes switch to a static method that wraps the full query I need.

JeffreyWay commented on Drop Down A Level

Only because we call the method a few times in that class. But no issue at all removing it.

A better option would be to instead reference the current user's team relationship.

auth()->user()->team;

JeffreyWay commented on Drop Down A Level

Just a video cut a half second too soon.

01 Jul
1 month ago

JeffreyWay left a reply on Laravel Mix With Vue-loader

Mix already uses vue-loader. You don't need to manually pull it in.