hunterhawley

hunterhawley

Member Since 1 Year Ago

Experience Points
6,150
Total
Experience

3,850 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
44
Lessons
Completed
Best Reply Awards
0
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 2
6,150 XP
Apr
29
3 months ago
Activity icon

Replied to How I Can Use Laravel Framework With The Wordpress?

My guess is that yes, you CAN somehow have Laravel run that for you (depending on how you want it to work) but in order to be more helpful we are going to need to know the specific problems you are running into when trying things. Take a look here to get started: https://wpengine.com/resources/wordpress-laravel/

Apr
28
3 months ago
Activity icon

Replied to Unable To Return Counts Of 0 (zero) With Query Builder

I considered using ->count() but then I cannot return the other things I need like the user and stat_meta type

Activity icon

Started a new Conversation Unable To Return Counts Of 0 (zero) With Query Builder

Hi there! Hopefully this is an easy one for somebody more eloquent-savvy than myself. With the following query, I am returning info about a user and their team, as well as a count of how many times each particular "stat_meta" type appears in the "basketball_game_events" table. However, when that count returns 0, it just doesn't return anything for that row. I want it to return each "stat_meta" type next to each user/team combo, even if there are 0 "basketball_game_events" to count.

$collection = DB::table('stat_metas')
                    ->select('users.id', 'users.name', 'teams.team_name', 'stat_metas.stat_abr', DB::raw('count(*) as total'))
                    ->leftJoin('basketball_game_events', 'stat_metas.id', '=', 'basketball_game_events.event_type_id')
                    ->leftJoin('users', 'basketball_game_events.player_id', '=', 'users.id')
                    ->leftJoin('user_team_rel', 'users.id', '=', 'user_team_rel.user_id')
                    ->leftJoin('teams', 'user_team_rel.team_id', '=', 'teams.id')
                    ->where('stat_metas.type', '=', 'recorded')
                    ->whereIn('users.id', $players)
                    ->groupBy('users.id', 'users.name', 'teams.team_name', 'stat_metas.stat_abr')
                    ->orderBy('users.name', 'asc')
                    ->orderBy('stat_metas.stat_abr')
                    ->get();
Mar
30
4 months ago
Activity icon

Started a new Conversation Difference Between Queries?

Hi there, I was wondering why these two queries are returning very different counts?

Version 1:

$collection = BasketballGameEvent::select('id')->whereIn('game_id', $games)->whereIn('event_type_id', [3])->count();
return $collection;

Version 2:

$collection = BasketballGameEvent::whereIn('game_id', $games)->whereIn('event_type_id', [3])->count();
return $collection;

Note that the only difference is that the "select('id') is missing from the second one. I know that you don't have the dataset, so these numbers don't mean much without that context, but V1 is giving me a count of 331 and V2 is giving me a count of 92?

I am not sure what the select has to do with the count?

Mar
29
4 months ago
Activity icon

Started a new Conversation Variable Class Names Or Secondary Table?

Hey y'all!

I have a table, 'basketball_game_events', and it is full of, you guessed it, all the things that happened during basketball games (assists, rebounds, etc.). The thing is, some of these events are shot types. Normally, a game event only needs 6 columns to be complete. However, there are 3 additional columns needed if we are talking about a type of shot (2 pointer made/missed, 3 pointed made/missed, you get the picture).

My question, would you all recommend breaking those last three columns off into a different table? On the one hand, it would clean my table up quite a bit and save me from seeing tons of NULL when it isn't needed. On the other, if I did break it off, I would have to do a lot more joins with my queries, and I would still have to have a reference column full of NULLs for none-shots.

I know this is probably largely opinion-based, but... I would love some opinions haha