tnorthcutt

tnorthcutt

Member Since 3 Years Ago

Experience Points 4,980
Experience
Level
Lessons Completed 53
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

28 Mar
7 months ago

tnorthcutt left a reply on FAQ / Knowledge Base Templates

I ran across https://github.com/BookStackApp/BookStack/ today, and it looks promising.

27 Mar
7 months ago

tnorthcutt left a reply on How Would You Implement Stacked Filtering?

@Nash thanks, that's very helpful!

26 Mar
7 months ago

tnorthcutt left a reply on How Would You Implement Stacked Filtering?

Thanks @wilk_randall that helps a bit :). My use-case is slightly more complicated than that, but I think it helps direct my thinking. I appreciate the input.

@jlrdw I would love to read that! Do you have any idea where this was discussed? Is this the thread you're referring to?

tnorthcutt started a new conversation How Would You Implement Stacked Filtering?

I'm looking to implement what I'm calling "stacked filtering" (is there a better term for this?) in my app.

What Drip has is pretty much exactly what I want to build (except with a different set of data & attributes, of course):

stacked-filter

Does anyone know of an example of doing this in Laravel, or some general (or specific!) guidelines? I've got single-attribute filtering (e.g. "show me users who have the name jeff) working, but going from there to multiple filters is... challenging, for me.

11 Jun
1 year ago

tnorthcutt left a reply on Require.extensions.hasOwnProperty Is Not A Function

There's a PR on Elixir; hasn't been merged yet: https://github.com/laravel/elixir/pull/723

I downgraded node to 6 in the meantime.

09 Jun
1 year ago
11 Jan
1 year ago

tnorthcutt left a reply on Passing Selected Plan To /register Page Via Url Parameters

Turns out you can pass plan=plan-id as a url parameter – this was fixed in https://github.com/laravel/spark/pull/514/

10 Jan
1 year ago

tnorthcutt left a reply on Passing Selected Plan To /register Page Via Url Parameters

Sorry, I probably wasn't clear.

I do want to show the plans on the landing page, but that's on a separate marketing site. So I've got my marketing site at example.com with the plans shown, and my app at app.example.com.

tnorthcutt started a new conversation Passing Selected Plan To /register Page Via Url Parameters

I'm wondering if it's possible/reasonable to, instead of displaying all plans on the /register page, allow passing the selected plan in via a url parameter. My use case is that I'd like the plan to be chosen on a sales/landing page, and not display all the choices again on the registration page.

26 Aug
2 years ago

tnorthcutt left a reply on Help With Latest And Eloquent Relationships

Apparently this is intended behavior, so I'll stick to using latest() and getting all scores.

tnorthcutt started a new conversation Help With Latest And Eloquent Relationships

In my Member model, I have the following:

public function scores()
{
    return $this->hasMany('App\Models\Score');
}

public function latestScore()
{
    return $this->hasMany('App\Models\Score')->latest();
}

And in my MemberController.php I have:

public function index()
{
    $members = $this->memberRepository->all()->load('latestScore');
    return view('members.index')->with('members', $members);
}

Currently, this works, but it results in a query for all the scores for all the members, as opposed to just the latest score for each member:

select * fromscoreswherescores.member_idin ('10', '9') order bycreated_atdesc

I've tried rewriting my latestScore() method and adding e.g. ->limit(1), but this results in a query like:

select * fromscoreswherescores.member_idin ('10', '9') order bycreated_atdesc limit 1

Which means a score is only loaded for one Member. Any suggestions?

29 Jul
2 years ago

tnorthcutt left a reply on Changing User Model Name For Spark

This may help: https://spark.laravel.com/docs/1.0/customization#model-classes

The example given is for changing the namespace, but you could try it.

22 Jul
2 years ago

tnorthcutt left a reply on .gitignore What Should Be Ignored?

@sg1asgard https://www.gitignore.io/ produces a lock file for Laravel with composer.lock ignored, FWIW.

11 May
2 years ago

tnorthcutt left a reply on Spark API Says Unauthorized

Not sure - I'm new to Spark too :). This may be of interest, though. Taken from this thread, which it looks like you've seen.

tnorthcutt left a reply on Spark API Says Unauthorized

Looks like that route uses the auth:api middleware, so you wouldn't expect it to work when logged out, right? Unless you're passing the token in your request, in which case I'd suggest comparing the request when logged out and when logged in to see what the difference is.