Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save devops-school/1e7f30b16179078489bb76577aca7961 to your computer and use it in GitHub Desktop.
Save devops-school/1e7f30b16179078489bb76577aca7961 to your computer and use it in GitHub Desktop.
composer create-project laravel/laravel <Project Name> "5.5.*" --prefer-dist
# Move to new project directory: <Project Name>
cd <Project Name>
Install Passport:
----------------
composer require paragonie/random_compat:2.*
composer require laravel/passport "4.0.*"
$ php artisan migrate
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrating: 2016_06_01_000001_create_oauth_auth_codes_table
Migrated: 2016_06_01_000001_create_oauth_auth_codes_table
Migrating: 2016_06_01_000002_create_oauth_access_tokens_table
Migrated: 2016_06_01_000002_create_oauth_access_tokens_table
Migrating: 2016_06_01_000003_create_oauth_refresh_tokens_table
Migrated: 2016_06_01_000003_create_oauth_refresh_tokens_table
Migrating: 2016_06_01_000004_create_oauth_clients_table
Migrated: 2016_06_01_000004_create_oauth_clients_table
Migrating: 2016_06_01_000005_create_oauth_personal_access_clients_table
Migrated: 2016_06_01_000005_create_oauth_personal_access_clients_table
$ php artisan passport:install
Encryption keys generated successfully.
Personal access client created successfully.
Client ID: 1
Client Secret: vMSs3J7dxU1RLCzSaeTMjARIhY3I3C3nIumxAaty
Password grant client created successfully.
Client ID: 2
Client Secret: grK9hSGJS1jhKMGKGxUia4D6vSRGxB313FIruBsI
php artisan make:controller API/TestController --resource
php artisan make:model model/TestModel
$ php artisan make:migration create_test_table --create=tests
Created Migration: 2019_09_24_090439_create_test_table
$ php artisan make:seeder TestTableSeeder
Seeder created successfully.
$ php artisan make:factory TestFactory
Factory created successfully.
$ php artisan migrate
Migrating: 2019_09_24_090439_create_test_table
Migrated: 2019_09_24_090439_create_test_table
$ php artisan db:seed
Seeding: TestTableSeeder
Make the Changes similar to the commit given below in your project:
--------------------------------------------------------------------
https://bitbucket.org/cotocusdevelopers/sp-microserivce-starter-kit/commits/a9276ae7c74e9568e87098ba6955e7659e2c828a
Test If Everything is working fine:
-----------------------------------
Refer to the link given below for steps to test your api:
https://bitbucket.org/cotocusdevelopers/sp-microserivce-starter-kit/src/master/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment