JeffreyWay

JeffreyWay

Member Since 5 Years Ago

Chattanooga, TN

Owner at Laracasts

Experience Points 460,990
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 272
Lessons
Completed
Best Reply Awards 341
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.

22 Jul
20 hours 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.

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
4 days 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
5 days 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 dont think we should write code with the assumption that everyone around us is using an IDE.

16 Jul
6 days ago

JeffreyWay commented on Avoid Flags

Yeah that's good, too. But if "temporary mute" is a thing, I'd rather the model be responsible for storing how long that 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

15 Jul
1 week ago

JeffreyWay left a reply on Laravel Kit

The forum isn't a place to advertise your projects.

13 Jul
1 week ago

JeffreyWay commented on An Alternative To Magic Numbers

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

12 Jul
1 week 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

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

  2. Fixed.

11 Jul
1 week 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
2 weeks 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.

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.

JeffreyWay commented on Drop Down A Level

No issue at all, if you want to remove it. I kept it, since we call that method a few times in the controller.

But a better option would be to reference the current user's team relationship.

auth()->user()->team;
01 Jul
3 weeks 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.

28 Jun
3 weeks ago

JeffreyWay commented on Go Go Gadget Tailwind

I can't remember, but I assume it's fairly close. I demonstrate a bit of the workflow here: https://laracasts.com/series/whatcha-working-on/episodes/35

27 Jun
3 weeks ago

JeffreyWay commented on Be Strict With Your Controllers

There's more to tweak in that controller in the next episode.

But I generally use the request() helper function unless the method references it multiple times.

26 Jun
3 weeks ago

JeffreyWay commented on When In Doubt

Interesting. I think the opposite. If creating a new controller allows you to return to the seven restful actions, it makes the entire application easier to reason about. The alternative is often countless confusing methods on your controller, or service classes all over the places.

JeffreyWay commented on Go Go Gadget Tailwind

Haha, in fact, you are the very first comment under the new system. ?

17 Jun
1 month ago

JeffreyWay left a reply on PHPStorm Look

Pull in the Material Theme UI plugin. It'll allow you to configure the title bar.

10 Jun
1 month ago

JeffreyWay left a reply on Any Good Videos On Factories?

Are you referring to Laravel's database factories, or general factory classes and methods?

07 Jun
1 month ago

JeffreyWay left a reply on How To Return 403 Status Gracefully From A Model?

I agree with @snapey. Your model doesn't need to be in charge of what status code to respond with. Instead, it can throw an exception that will bubble up to the controller. The controller can then catch it and decide how to respond (return a 403).

02 Jun
1 month ago

JeffreyWay left a reply on Videos Stopped Working?

Hey, everyone. Yeah, nothing we can do but wait. :|

I've added a site-wide notification until it's fixed.

31 May
1 month ago

JeffreyWay left a reply on Is Semicolon Necessary In < ?= $myvar; ?>

You have to wrap your code in ticks. I've updated your question.

And, no, you don't have to add the semicolon if it's only a single expression.

21 May
2 months ago

JeffreyWay left a reply on Laravel Js Bundle Size Is Too Heavy, Using PDFmake And Data Tables

Is it 2mbs, even for your production builds (npm run production)?

20 May
2 months ago

JeffreyWay left a reply on Getting Values From Radio Button

<input type="radio" name="gender" value="male" {{ $user->gender === 'mail' ? 'checked' : '' }}>

JeffreyWay left a reply on How To Record A Screen Cast?

I do code and speak at the same time during screencasts. You might find that you already do this, quietly, when you're working on your own projects.

Anyhow, I'm not doing anything special. Hit record, work through a lesson, and then edit out any major mistakes or pauses at the end.

15 May
2 months ago

JeffreyWay left a reply on Laracasts Search

You're referring to the instant autocomplete results. If you want something more in depth, press "/", click "Discussions," type your query, and press enter.

JeffreyWay left a reply on View Team Member's Completed Videos

Within the last month, we added an activity feed to the team manager dashboard. This will be extended very soon to provide even more information. ?

14 May
2 months ago

JeffreyWay left a reply on Laracasts Search

@digiproduct First, thanks to you and @snakey for saying the search I built sucks. Great to hear. Second, sorry you're not a fan, but I think it's pretty easy to:

  1. Press /
  2. Type your search query. If you see a lesson below that matches what you want, press down a couple times to select it. Otherwise, press enter.
  3. Watch the content.

I now notice its an extra click to edit my post. Why?

A "..." context menu is pretty common. Twitter does it, too. Helps to clean things up.

10 May
2 months ago

JeffreyWay left a reply on Is It Me Or Laravel Is Really Hard To Tame For Beginners?

In one vid Jeff says "k, we need to create a new task, well then, let's create an instance, assign every property and then just call save() method, it's that simple! Let's continue in the next...", the next vid: "remember how we did it? well there is a better way and blabla..", the following vid: "in the previous vid we did this, BUT, there is a BETTER approach".

Sorry to hear you're not a fan of that approach, but I think it's vital. I find that newcomers often want to be given the "right way" shortcut. I don't think that's useful.

It's like learning an instrument. If you only learn how to play a particular melody in one position, how is that useful? The key is to learn how to play the melody all over the neck, in multiple positions. That's what I'm trying to do with these lessons. "Here's one way to create and save the task. But here's another approach you can reach for."

07 May
2 months ago

JeffreyWay left a reply on [small Bug] Broken Link

This was fixed a couple hours ago.

JeffreyWay left a reply on Clicking On Profile Image Leads To 404

Ah, missed a quote in the deploy a few minutes ago. Thanks for catching that!

06 May
2 months ago

JeffreyWay left a reply on Common Question

If that's the only place you'll ever make a new payment, then I think it's fine in your controller.

29 Apr
2 months ago

JeffreyWay left a reply on SQLSTATE[HY093]: Invalid Parameter Number: Mixed Named And Positional Parameters

Please format your code blocks properly and provide more information.

19 Apr
3 months ago

JeffreyWay left a reply on Jeffrey:More Javascript Framework Tutorials?

No plans to cover Angular. I might commission a React + Laravel series this summer. We'll see.

12 Apr
3 months ago

JeffreyWay left a reply on Where Are You All From?

Very thankful to have you all has visitors to this little site I made in my bedroom six years ago. :)

06 Apr
3 months ago

JeffreyWay left a reply on Emojis ?

@KENEATH - Just press escape.

05 Apr
3 months ago

JeffreyWay started a new conversation Emojis

Hey, everyone. Just a quick heads up that you can now use emojis on the forum.

?

Please don't abuse it. ?