gcwilliams

gcwilliams

Member Since 4 Years Ago

Experience Points
52,670
Total
Experience

2,330 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
510
Lessons
Completed
Best Reply Awards
23
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 11
52,670 XP
Apr
29
1 month ago
Activity icon

Replied to How Do I Make A Policy With A Model Other Than "User"?³

More than likely your policy was just not running at all. If the names are not standard you will probably have to manually register the model/policy instead.

Apr
19
1 month ago
Activity icon

Replied to Legal Issue Relate Laravel Topic Book Publish

I'd suggest trying to contact Matt Stauffer https://mattstauffer.com He wrote "Laravel: Up and Running", so I would assume he would know. Might try to message him on twitter.

Apr
16
1 month ago
Activity icon

Replied to How To Query Spatie Role-Permission

What are you trying to do exactly? Get a list of users with a specific role? Check to see if the specific user has a role?

Apr
15
1 month ago
Activity icon

Replied to Problem Restoring Soft-deleted Record.

You can’t use route model binding with soft deleted records without some changes to look for trashed items. So your option is to make a custom lookup for those routes or just pass the ID and manually look it up within the controller method.

Mar
21
2 months ago
Activity icon

Replied to Laravel ACL Organizations/Groups/Users/Roles Package?

I'm not sure there will be any with all the features your looking for. The top ones are Spatie's and

https://github.com/JosephSilber/bouncer

https://github.com/santigarcor/laratrust

Laratrust supports teams, so that might be as close to what you're looking for as what is out there.

You might have to just extend one.

Feb
20
3 months ago
Activity icon

Replied to API Resource Collection Dont Working W Getuser By Id

That is because $data is just an array. You need to pass a model, ie. $record.

Feb
05
3 months ago
Activity icon

Awarded Best Reply on Question About Required Laravel/framework Version In L6.0

Yes. Just people updating for possible future releases.

Jan
18
4 months ago
Activity icon

Replied to Carbon : Avoid Month Overflow

Not sure there is a way to globally set overflow to off. But this way works on the actual date object:

$dt = CarbonImmutable::createFromDate(2020, 1, 1)
  ->toPeriod('2020-10-30', 1, 'month')
  ->settings(['monthOverflow' => false]);

foreach ($dt as $date) {
  echo $date->firstOfMonth() . " - ". $date->endOfMonth() . "\n";
}

The big thing is you need to start from the first of the month and not from the 31st of January. That will always skip over Feb. even with overflow turned off.

Dec
29
5 months ago
Activity icon

Awarded Best Reply on How To Send Svg Via Laravel Controller ?

Just create a new route that only generates the image. Then fetch that route via Ajax upon click.

Dec
27
5 months ago
Activity icon

Replied to Best Practice: Normalize/transform Data To Frontend?

Personally I usually do C with a API resource. It is just cleaner that way and you control exactly how you want the data to look.

https://laravel.com/docs/6.x/eloquent-resources

Dec
17
5 months ago
Activity icon

Replied to How To Send Svg Via Laravel Controller ?

Just create a new route that only generates the image. Then fetch that route via Ajax upon click.

Dec
14
5 months ago
Activity icon

Replied to TreeTrait

It is just a new empty Eloquent collection. It is just an empty https://laravel.com/docs/6.x/eloquent-collections

=> Illuminate\Database\Eloquent\Collection {#952
     all: [],
   }
Dec
09
5 months ago
Activity icon

Replied to I'm Trying To Use Middleware To Restrict The Users From Accessing Pages They Are Not Allowed Or Relevant To Them Based On Their Role.

While it is a little hard to read, looking at your middleware, it is basically always authorizing the user to see the page unless they have no role at all. If they are an admin, it continues, a member, it continues, etc.

You might consider using something like laravel permission: https://docs.spatie.be/laravel-permission/v3/introduction/

It has built in role guards that can be used similar to what you're attempting to do.