kingshark

kingshark

Member Since 2 Years Ago

Chengdu, China

Experience Points
6,300
Total
Experience

3,700 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
33
Lessons
Completed
Best Reply Awards
4
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,300 XP
Jun
01
5 months ago
Activity icon

Replied to Override Package Method (overriden Method Not Called)

you know what, I copied all your implementation to a demo project, and works fine. if i use Captcha::create(), it will print your "no".

There are only one thing you didn't mentioned here, you can check, that in config/app.php, for this part

'providers' => [
        // ...
        'Mews\Captcha\CaptchaServiceProvider',
    ]

have you changed this to your custom provider? if not, the original provider will be registered but yours are not so no effect at all.

May
31
5 months ago
Activity icon

Replied to Override Package Method (overriden Method Not Called)

I don't know if it's a typo, you called Captcha::src() which doesn't call create() function at all. I think your binding is right. Another small flaws is in your binding, Mews\Captcha\CaptchaServiceProvider::class, is not necessary as its already override by your custom class, but it will not affect the result anyway.

May
26
6 months ago
Activity icon

Replied to Route Problem

Thanks. Tests is necessary but i want a general small command for it, and also can put it into tests. You know, we have some old bad repository, without enough people writing missed api tests, and some routes file have many endpoints. So just a small code in this bad reality. I already written the command, but want to have a good name.

May
25
6 months ago
Activity icon

Replied to Route Problem

I mean it will never be hit, so its a coding problem. I just want to write a command to detect this kind of problem for our apps for some careless developers but want to have a name for it :)

Activity icon

Started a new Conversation Route Problem

here is a simple example:

Route::get('/post/{id}', '[email protected]');

// ...

Route::get('/post/new', '[email protected]');

if we write routes in this order, the /post/new will always be recognized as first route pattern by Laravel route resolver. The solution is pretty simple, we can change the order or add where condition behind post/{id} route.

My question is: How should we call this problem? "route conflict" seems too broaden to define the problem. Does the problem have a name or doesn't it even deserve a specific name?