{"id":28548393,"url":"https://github.com/tarikulcodes/laravel-auth-api","last_synced_at":"2025-07-02T15:31:20.617Z","repository":{"id":209401254,"uuid":"723942966","full_name":"tarikulcodes/Laravel-Auth-API","owner":"tarikulcodes","description":"Laravel Authentication (Register, Login and Logout) Example API","archived":false,"fork":false,"pushed_at":"2024-02-17T12:56:36.000Z","size":90,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T01:09:50.113Z","etag":null,"topics":["laravel-10","laravel-api","laravel-api-auth","sanctum-authentication"],"latest_commit_sha":null,"homepage":"","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/tarikulcodes.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":"2023-11-27T04:26:42.000Z","updated_at":"2025-03-03T05:39:00.000Z","dependencies_parsed_at":"2024-11-08T00:30:31.665Z","dependency_job_id":"93d413c4-4d90-4ca0-a223-d39d2c2a8d5a","html_url":"https://github.com/tarikulcodes/Laravel-Auth-API","commit_stats":null,"previous_names":["tarikulwebx/laravel-auth-api","tarikulcodes/laravel-auth-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarikulcodes/Laravel-Auth-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikulcodes%2FLaravel-Auth-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikulcodes%2FLaravel-Auth-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikulcodes%2FLaravel-Auth-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikulcodes%2FLaravel-Auth-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarikulcodes","download_url":"https://codeload.github.com/tarikulcodes/Laravel-Auth-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikulcodes%2FLaravel-Auth-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263165766,"owners_count":23424006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["laravel-10","laravel-api","laravel-api-auth","sanctum-authentication"],"created_at":"2025-06-10T01:09:45.027Z","updated_at":"2025-07-02T15:31:20.547Z","avatar_url":"https://github.com/tarikulcodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://laravel.com\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg\" width=\"400\" alt=\"Laravel Logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/laravel/framework/actions\"\u003e\u003cimg src=\"https://github.com/laravel/framework/workflows/tests/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/laravel/framework\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/laravel/framework\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/laravel/framework\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/laravel/framework\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/laravel/framework\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/laravel/framework\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Laravel-Auth-API\n\nUser authentication (Registration, Login, Logout) example of Laravel API using Sanctum.\n\n## Setup\n\n### Step 1:\n\nClone the repository in your local directory\n\n```\ngit clone https://github.com/tarikulwebx/Laravel-Auth-API.git\n```\n\n### Step 2:\n\nCreate .env file in your project root directory and copy all lines of codes from .env.example to .env.\n\nChange following database credentials according to your local MySQL Database.\n\n```\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=laravel_auth_api_db\nDB_USERNAME=root\nDB_PASSWORD=\n```\n\n### Step 3:\n\nInstall composer dependencies\n\n```\ncomposer install\n```\n\n### Step 4:\n\nGenerate App_key for the Laravel Api (.env file)\n\n```\nphp artisan key:generate\n```\n\n### Step 5:\n\nMigrate database\n\n```\nphp artisan migrate\n```\n\n### Step 6:\n\nRun the API\n\n```\nphp artisan serve\n```\n\n### Step 7:\n\nUse Postman to test the API for the register, login and logout process. The working API routes are-\nRegister\n\n```\nhttp://127.0.0.1:8000/api/register\n```\n\nLogin\n\n```\nhttp://127.0.0.1:8000/api/login\n```\n\nLogout\n\n```\nhttp://127.0.0.1:8000/api/logout\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarikulcodes%2Flaravel-auth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarikulcodes%2Flaravel-auth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarikulcodes%2Flaravel-auth-api/lists"}