yng

yng

Member Since 1 Month Ago

Experience Points
360
Total
Experience

4,640 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
0
Lessons
Completed
Best Reply Awards
0
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 1
360 XP
Jul
11
1 month ago
Activity icon

Started a new Conversation How To Use Php://stderr ?(streamHandler, Monolog)

I want to use StreamHandler in monolog.

I added the stderr channel to stack channel, and printed out the log.

 'stderr' => [
        'driver' => 'monolog',
        'handler' => StreamHandler::class,
        'formatter' => env('LOG_STDERR_FORMATTER'),
        'with' => [
            'stream' => 'php://stderr',
        ],
    ],

I don't know which directory I can check.

Thank you for reading.

Jul
05
1 month ago
Activity icon

Awarded Best Reply on Laravel Passport Resulted In A `400 Bad Request`

I solved .

use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Client;

    $response = $http->post('http://localhost/oauth/token', [
        'form_params' => [
            'grant_type' => config('constants.p_grant_type'),
            'client_id' => config('constants.P_client_id'),
            'client_secret' => config('constants.P_client_secret'),
            'username' => $request->email,
            'password' => $request->password,
            'scope' => '',
        ],
    ]);

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

important no need header (json) This is absolutely necessary.(json_decode)

Activity icon

Replied to 404 Not Found

You need to check the router with this command.

php artisan route:list

check controller

Jul
04
1 month ago
Activity icon

Replied to I'd Like To Remove The Old Token. (passport, Password Grant)

oh my god ! thank you TT It's worked !!!

Activity icon

Started a new Conversation I'd Like To Remove The Old Token. (passport, Password Grant)

I'm currently issuing tokens using Password Grant.

If I log in, I want to remove all tokens that I previously issued.

But According to my research, I confirmed that Password Grant can only be issued and refreshed.

I would like to know if the old token cannot be removed when issuing tokens with Password Grant.

I look forward to your kind cooperation.

Activity icon

Replied to Laravel Passport Resulted In A `400 Bad Request`

I solved .

use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Client;

    $response = $http->post('http://localhost/oauth/token', [
        'form_params' => [
            'grant_type' => config('constants.p_grant_type'),
            'client_id' => config('constants.P_client_id'),
            'client_secret' => config('constants.P_client_secret'),
            'username' => $request->email,
            'password' => $request->password,
            'scope' => '',
        ],
    ]);

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

important no need header (json) This is absolutely necessary.(json_decode)

Activity icon

Started a new Conversation Laravel Passport Resulted In A `400 Bad Request`

I'm testing passport (Password Grant Token).

This command works properly.(on HomeStead, terminal)

curl -X POST -H 'Content-Type: application/json' -d '{"grant_type":"password", "client_id":"5", "client_secret":"4demeqgD0fyTonizGz45vngIbRj4TCK3PbSKvyz1", "username":"hey2@test.com", "password":"dydgns","scope":"*"}' http://192.168.10.10/oauth/token

but I typed this code, It not worked.

$headers = ['Content-Type' => 'application/json'];

$response = $http->post('http://192.168.10.10/oauth/token', [ 'headers' => $headers, 'form_params' => [ 'grant_type' => 'password', 'client_id' => '5', 'client_secret' => '4demeqgD0fyTonizGz45vngIbRj4TCK3PbSKvyz1', 'username' => $request->email, 'password' => $request->password, 'scope' => '', ], ]);

"message": "Client error: `POST http://192.168.10.10/oauth/token` resulted in a `400 Bad Request` response:\n{\"error\":\"unsupported_grant_type\",\"error_description\":\"The authorization grant type is not supported by the authorizatio (truncated...)\n",

thank!

Activity icon

Replied to When I Made Passport Client(Password Grant Token)

Thank you! you save me

Jul
03
1 month ago
Activity icon

Started a new Conversation When I Made Passport Client(Password Grant Token)

I created the client using the command below.

php artisan passport:client --password

I saw two questions, what do you mean?

1.What should we name the password grant client? [Laravel Password Grant Client]

  1. Which user provider should this client use to retrieve users? [users]:

thanks

Jul
02
1 month ago
Activity icon

Replied to What Grant Type Is Used In This Tutorial?

Thank you for leaving a comment.

Activity icon

Started a new Conversation What Grant Type Is Used In This Tutorial?

There are several types supported by the Passport.

Personal Access Token Password Grant Token Client Credentials Grant Token Auth Code Implicit Grant Token

What grant type is used in this tutorial?

https://www.twilio.com/blog/build-secure-api-php-laravel-passport

I want to know how I got the key issued without using the client's secret key.

thanks.