shez1983

Member Since 5 Years Ago

London

Experience Points
108,775
Total
Experience

1,225 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
227
Lessons
Completed
Best Reply Awards
110
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.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 22
108,775 XP
May
05
1 month ago
Activity icon

Started a new Conversation Laravel Passport - Login Doesnt Work After Some Time?

so i am not sure what i am doing wrong but i find that after like 19? hours (or some time) the login route gives an error

{
    "error": "invalid_grant",
    "error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
    "hint": "",
    "message": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
}

and i have to reseed the database before it starts working again i am not sure why though?

  1. i checked all passport tables for 'revokation' field which is still 0 and expiry date for tokens is still in the future
  2. i dont see a change in the table entries that tells me what is actually wrong (all info seems to be the same).

in the seed i have a DB insert


        DB::insert("
            INSERT INTO `oauth_clients`
            (`id`, `user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`)
            VALUES
            (". config('api.client_id') . ", NULL, 'Laravel Password Grant Client', '". config('api.client_secret')  ."', 'users', '". config('app.url') . "', 0, 1, 0)"
        );

so the client id/secret stay the same and the F/E (app guys) can still use the same secret/code to access the api (its an internal api)..

Edited: earlier on i had overridden the expiry times in AUthSerProvider

Passport::tokensExpireIn(now()->addMinutes(config('api.access_token_expiry')));
        Passport::refreshTokensExpireIn(now()->addMinutes(config('api.refresh_token_expiry')));

        Passport::personalAccessTokensExpireIn(now()->addMonths(6));

and my problem seemed to be happening less frequently, i thought if i deleted this it would 'work' as i wud be using Laravel's expiry times (1 year) and now it happened more frequently..

Feb
27
3 months ago
Activity icon

Replied to Policies: Add Global Filter

what happens if you have both a global gate and then a model based policy? did you test to see whether this works or not?

if not - what you could do is have a basePOlicy which every other policy extends from, in that policy have a before filter policy. so now viola its pretty much global

Jan
19
4 months ago
Activity icon

Replied to How Can I Increase Memory Limit Of Laravel Project

someone gave u a reply - which u did, but u gave yourself best answer - thats what you did wrong as have said..

Jan
13
4 months ago
Dec
07
6 months ago
Activity icon

Replied to Php Artisan Test - Environment

so whats the point of the .env.test file? is it used ANYWHERE anymore?