tnorthcutt

Experience

4,880

0 Best Reply Awards

  • Member Since 3 Years Ago
  • 52 Lessons Completed
  • 2 Favorites

28th March, 2018

tnorthcutt left a reply on FAQ / Knowledge Base Templates • 3 months ago

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

27th March, 2018

tnorthcutt left a reply on How Would You Implement Stacked Filtering? • 3 months ago

@Nash thanks, that's very helpful!

26th March, 2018

tnorthcutt left a reply on How Would You Implement Stacked Filtering? • 3 months ago

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? • 3 months ago

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.

11th June, 2017

tnorthcutt left a reply on Require.extensions.hasOwnProperty Is Not A Function • 1 year ago

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.

9th June, 2017

tnorthcutt left a reply on Blade Autocompletion (with PHPStorm) • 1 year ago

For anyone else who runs across this in the future, this is relevant: https://blog.jetbrains.com/phpstorm/2017/02/code-completion-in-laravel-blade-templates/

11th January, 2017

tnorthcutt left a reply on Passing Selected Plan To /register Page Via Url Parameters • 1 year ago

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

10th January, 2017

tnorthcutt left a reply on Passing Selected Plan To /register Page Via Url Parameters • 1 year ago

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 • 1 year ago

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.

26th August, 2016

tnorthcutt left a reply on Help With Latest And Eloquent Relationships • 1 year ago

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 • 1 year ago

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?

29th July, 2016

tnorthcutt left a reply on Changing User Model Name For Spark • 1 year ago

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.

22nd July, 2016

tnorthcutt left a reply on .gitignore What Should Be Ignored? • 1 year ago

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

11th May, 2016

tnorthcutt left a reply on Spark API Says Unauthorized • 2 years ago

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 • 2 years ago

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.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.