Skip to content

Instantly share code, notes, and snippets.

@danielverissimo
Last active May 12, 2018 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielverissimo/0c779c1c0253a5fd9e594f80300cee75 to your computer and use it in GitHub Desktop.
Save danielverissimo/0c779c1c0253a5fd9e594f80300cee75 to your computer and use it in GitHub Desktop.
Laravel

Laravel Knowledged Base

@danielverissimo
Copy link
Author

OAuth

  • Create OAuth token

    1. Create oauth client

    2. Execute http://example.com/oauth/token, sent body params:

         grant_type: password
         client_id: client_id
         client_secret: client_secret_key
         username: client_username
         password: client_password
         scope:
      
    3. Set password_client = 1 on oauth_clients table:

      image

@danielverissimo
Copy link
Author

danielverissimo commented May 12, 2018

Rodar Comando Scaffold:

php artisan make:scaffold CreateMailAccountsTable --migration=CreateMailAccountsTable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment