dashty

dashty

Member Since 2 Years Ago

Experience Points 8,540
Experience Level 2

1,460 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 84
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

14 Jul
8 months ago
13 Jul
8 months ago

dashty started a new conversation Laravel Passport Socialite Facebook - 400 Bad Request

I am trying to use vue with laravel and login with Facebook using socialite and passport. I have set up the developer app successfully and the client oAuth. But after the guzzle request I get this error : 400 Bad Request response: {"error":"invalid_request","message":"The request is missing a required parameter, includes an invalid parameter value, (truncated...)

public function redirectToProvider() { return response()->json([ 'redirectUrl' => Socialite::driver('facebook')->stateless()->redirect()->getTargetUrl() ]); }

public function handleProviderCallback() { try { $user = Socialite::driver('facebook')->stateless()->user(); } catch (Exception $e) { return Redirect::to('/auth/login'); }

    $authUser = $this->findOrCreate($user);
    return $authUser;
}

public function findOrCreate($socialLiteUser) { $user = User::where('email', $socialLiteUser->email)->first(); if($user){ $client = new \GuzzleHttp\Client();

           $response = $client->post('http://lyrics.test/oauth/token', [
               'form_params' => [
                   'grant_type' => 'authorization_code',
                   'client_id' => '10',
                   'client_secret' => 'SWxg8zlEl8SpsO3AwvlNnEJy2XjbkJjCGSgCMklw',
                   'redirect_uri' => 'https://lyrics.test/social/auth/facebook',
                   'code' => $socialLiteUser->token,
               ],
           ]);

           return json_decode((string) $response->getBody(), true);

    } else {
        dd('nya');
    }
} 

dashty left a reply on Laravel Socialite Facebook - Bad Request

I am still facing this problem, due to my understanding, I think it is because of the #_=_ in url after the posting with guzzle and redirection. But I don't know how to fix that. Anyone?

Your help is highly appreciated

30 Apr
1 year ago

dashty left a reply on Query Builder Search Filter Does Not Work With Text

class UserFilters extends QueryFilter {

public function username($name) {

    return $this->builder->where('student_id', $name);

}

}

dashty started a new conversation Query Builder Search Filter Does Not Work With Text

I want to search through the users tables using the username with QueryFilter.

Here is my UserFilters class:

29 Mar
1 year ago

dashty left a reply on Localization Tips For Project With Dynamic Content.

I have the same problem ! Please let me know if you got any solution