{"id":18750511,"url":"https://github.com/bhadresh-laiya/api-auth-wizard","last_synced_at":"2026-04-28T12:02:06.916Z","repository":{"id":126408848,"uuid":"169844518","full_name":"bhadresh-laiya/api-auth-wizard","owner":"bhadresh-laiya","description":"How to do a RESTful API in Laravel 5.5 with authentication by email and password using Laravel Passport (OAuth 2.0)","archived":false,"fork":false,"pushed_at":"2019-02-09T08:21:17.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-20T11:08:41.376Z","etag":null,"topics":["api","authentication","backend","backend-api","laravel","laravel-authentication","laravel-framework","laravel-passport","passport","php","phpmyadmin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bhadresh-laiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-09T07:57:00.000Z","updated_at":"2019-02-13T04:14:40.000Z","dependencies_parsed_at":"2023-06-16T15:15:43.660Z","dependency_job_id":null,"html_url":"https://github.com/bhadresh-laiya/api-auth-wizard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bhadresh-laiya/api-auth-wizard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhadresh-laiya%2Fapi-auth-wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhadresh-laiya%2Fapi-auth-wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhadresh-laiya%2Fapi-auth-wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhadresh-laiya%2Fapi-auth-wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhadresh-laiya","download_url":"https://codeload.github.com/bhadresh-laiya/api-auth-wizard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhadresh-laiya%2Fapi-auth-wizard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","authentication","backend","backend-api","laravel","laravel-authentication","laravel-framework","laravel-passport","passport","php","phpmyadmin"],"created_at":"2024-11-07T17:12:14.509Z","updated_at":"2026-04-28T12:02:06.878Z","avatar_url":"https://github.com/bhadresh-laiya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Api Authentication wizard!\nHow to do a RESTful API in Laravel 5.5 with authentication by email and password using Laravel Passport (OAuth 2.0)\n\n### Prerequisites\n* Apache\n* PHP\n* Composer\n* Envirenment for deploy project\n\n### Step 1 - Clone this Repo\n\n### Step 2 - Run composer install\n```\ncomposer install\n```\n\n### Step 3 - Create database and makes changes into following file\n```\n.env\n```\n\n### Step 4 - Run migrations\n```\nphp artisan migrate\n```\n\n### Step 5 - Install Laravel Passport\n```\nphp artisan passport:install\n```\n### Step 6 - Modify Mail config field into .env file\n```\nMAIL_DRIVER=smtp\nMAIL_HOST=smtp.mailtrap.io\nMAIL_PORT=2525\nMAIL_USERNAME=null\nMAIL_PASSWORD=null\nMAIL_ENCRYPTION=null\n```\n\n### Step 7 - Test API endpoints using CURL or Using REST Client tool or extension(like Postman, Mozilla Rest Client, etc.)\nRegister\n\n```\nhttp://localhost/api-auth-wizard/api/register?name=your_name\u0026email=your_email_address\u0026password=your_password\n```\n\n```\ncurl -X POST -H 'Accept: application/json' -d 'name=your_name\u0026email=your_email_address\u0026password=your_password\u0026password_confirmation=your_password' http://localhost/api-auth-wizard/api/register\n\n```\n\nLogin\n\n```\nhttp://localhost/api-auth-wizard/api/login?email=your_email_address\u0026password=your_password\n```\n\n```\ncurl -X POST -H 'Accept: application/json' -d 'email=your_email_address\u0026password=your_password' http://localhost/api-auth-wizard/api/login\n```\n\nVerify Email\n\n```\nhttp://localhost/api-auth-wizard/api/user/verify/{email_token}\n```\n\n```\ncurl -X POST -H 'Accept: application/json' -d 'token={email_token}' http://localhost/api-auth-wizard/api/user/verify\n```\n\nLogout\n\n\n```\nhttp://localhost/api-auth-wizard/api/logout?token={after_login_token}\n```\n\n```\ncurl -H 'Accept: application/json' -H 'Authorization: Bearer token_generated_on_register_or_login' http://localhost/api-auth-wizard/api/logout\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhadresh-laiya%2Fapi-auth-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhadresh-laiya%2Fapi-auth-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhadresh-laiya%2Fapi-auth-wizard/lists"}