thewizardguy

thewizardguy

Member Since 2 Years Ago

Experience Points 10,530
Experience Level 3

4,470 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 103
Lessons
Completed
Best Reply Awards 0
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.

26 Feb
5 months ago

thewizardguy left a reply on $loop Variable In Vanilla Php?

perfect! thanks!!

thewizardguy left a reply on $loop Variable In Vanilla Php?

$addresses = $request->addresses;

foreach($addresses as $key => $address) {
    $address['order'] = $key;
    $address['trip_id'] = $trip->id;
    $location = Location::create($address);
}

each $address contains a "form array" that contains lat, lng, address (one liner), name. I add "order" and "trip_id" then create it.

Order comes out 0, 4, 8 in the DB...

Maybe I'm just dumb ?

thewizardguy started a new conversation $loop Variable In Vanilla Php?

I just find myself missing the syntactical sugar that the blade templating engine provides. Yes, I know you can use $key => $value, but $key doesn't always iterate one at a time, and I'd really love to start loops at 1 sometimes without adding/subtracting inside the loop. Anyone know if this is available? My cursory google searches turned up a big fat nothin...

thewizardguy left a reply on Permissions On Model

To all those who might care, we decided to eventually go with the Bouncer package and just throw individual model instance permissions to everyone.

10 Jan
7 months ago

thewizardguy left a reply on Permissions On Model

@SMNHUNT - now THAT is interesting...I really like that approach. Might just use that. Thank you!!!

Yknow, I had seen a package by spatie for schemaless attributes, I had no idea it was essentially "built in" since 5.3! Wow! THANK YOUUUUUUUU

09 Jan
7 months ago

thewizardguy left a reply on Permissions On Model

Per your suggestion I took a very close look at bouncer. I remember looking at this package a few years ago, but didn't remember it being this customizable.

While it is nice to be ABLE to account for this type of relationship, it isn't exactly a round peg for my round hole. I might end up going with Bouncer in general though -- it seems very well thought out.

I'm not sure if it's really that unusual of an ask or I'm just thinking about this the wrong way, but I still haven't found an elegant solution to this...

Thank you for responding!!

06 Jan
7 months ago

thewizardguy started a new conversation Permissions On Model

I've used Spatie's package and Laratrust for various permission models with Teams and without before, but I've recently run into a client desire that I'm not sure I'm planning on handling correctly.

Basically the Client wants every individual User on the platform to have individualized levels of access to "Post" instead of a Role that dictates permissions for all Posts, and not limited to whomever creates it. So, Joe creates Post 1 and invites Marcy to have Editor permissions on Post 1, but only on Post 1.

So my first instinct is to just use Spatie's package, as I have, but to append something like $user->givePermissionTo('edit_post_1'); But then I thought it would just be ... i dunno, gross? Also sounds like a terribly inefficient query to run, but since I hadn't tried it at scale I can't say for sure. My next step would be to generate about a million entries and see how long queries take, but it doesn't seem like something that scales well.

Then I thought of maybe individual tables for each "Post" for permissions, but that sounds like a big headache... I dunno, someone have some better ideas? I've been thinking about this for weeks, im ashamed to say, and I need some help. PLEASE!

05 Jul
1 year ago

thewizardguy left a reply on Libsodium

I just found this in a PHP video -- also curious if this will be integrated into future version. Video link: https://youtu.be/rKXFgWP-2xQ?t=1147

05 Jun
1 year ago

thewizardguy left a reply on SSO Using Laravel + WordPress

I'm looking to do something similar, and the only answer I've found is to figure out some JWT solution that doesn't sound ... like it should be necessary?

Did you ever find an elegant solution to this?

14 Sep
1 year ago