{"id":23346679,"url":"https://github.com/krguptaa/laravel_boilerplate_for_api","last_synced_at":"2026-05-09T07:03:56.142Z","repository":{"id":143760821,"uuid":"144948355","full_name":"krguptaa/laravel_boilerplate_for_api","owner":"krguptaa","description":"Create an REST API within a second using laravel 5.7. Here we provide the boilerplate for API.","archived":false,"fork":false,"pushed_at":"2018-10-07T03:36:24.000Z","size":2632,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T17:21:35.047Z","etag":null,"topics":["adminpanel","api","auth-api","boilerplate","jwt","laravel-api-auth","laravel-api-boilerplate","laravel-framework","rest","rest-api","restful-api","skeleton"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krguptaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-08-16T06:46:05.000Z","updated_at":"2018-10-07T03:35:44.000Z","dependencies_parsed_at":"2023-05-04T15:35:50.875Z","dependency_job_id":null,"html_url":"https://github.com/krguptaa/laravel_boilerplate_for_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krguptaa/laravel_boilerplate_for_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Flaravel_boilerplate_for_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Flaravel_boilerplate_for_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Flaravel_boilerplate_for_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Flaravel_boilerplate_for_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krguptaa","download_url":"https://codeload.github.com/krguptaa/laravel_boilerplate_for_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Flaravel_boilerplate_for_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32810382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["adminpanel","api","auth-api","boilerplate","jwt","laravel-api-auth","laravel-api-boilerplate","laravel-framework","rest","rest-api","restful-api","skeleton"],"created_at":"2024-12-21T07:14:34.894Z","updated_at":"2026-05-09T07:03:56.106Z","avatar_url":"https://github.com/krguptaa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Inspired by Viral Solani\n\nIt is same as the below repo but some change we made in this git as per general requirement\n\n`https://github.com/viralsolani/laravel-api-boilerplate-jwt.git`\n\n## Laravel API Boilerplate (JWT Edition) for Laravel 5.7\n\n\n# Getting started\n\n## Introduction\n\nLaravel API Boilerplate is a \"starter kit\" you can use to build your first API in seconds. As you can easily imagine, it is built on top of the awesome Laravel Framework. This version is built on Laravel 5.6!\n\n## Installation\n\nPlease check the official laravel installation guide for server requirements before you start. [Official Documentation](https://laravel.com/docs/5.6/installation#installation)\n\n\nClone the repository\n\n    git clone https://github.com/gupta-kamlesh-r/laravel_boilerplate_for_api.git\n\nSwitch to the repo folder\n\n    cd laravel_boilerplate_for_api\n\nInstall all the dependencies using composer\n\n    composer install\n\nCopy the example env file and make the required configuration changes in the .env file\n\n    cp .env.example .env\n    \n(**Set the database connection in .env file**)\n\nGenerate a new application key\n\n    php artisan key:generate\n\nGenerate a new JWT authentication secret key\n\n    php artisan jwt:generate\n\nRun the database migrations (**Set the database connection in .env before migrating**)\n\n    php artisan migrate\n\nRun the Seeder \n\n    php artisan db:seed\n\nStart the local development server\n\n    php artisan serve\n\nYou can now access the server at http://localhost:8000\n\n**TL;DR command list**\n\n    git clone https://github.com/gupta-kamlesh-r/laravel_boilerplate_for_api.git\n    cd laravel-api-boilerplate-jwt\n    composer install\n    cp .env.example .env\n    php artisan key:generate\n    php artisan jwt:generate\n\n**Make sure you set the correct database connection information before running the migrations** [Environment variables](#environment-variables)\n\n    php artisan migrate\n    php artisan db:seed\n    php artisan serve\n\n## Environment variables\n\n- `.env` - Environment variables can be set in this file\n\n\n***Note*** : You can quickly set the database information and other variables in this file and have the application fully working.\n\n# Authentication\n\nThis applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the `Authorization` header with `Token` scheme. The JWT authentication middleware handles the validation and authentication of the token. Please check the following sources to learn more about JWT.\n\n- https://jwt.io/introduction/\n- https://self-issued.info/docs/draft-ietf-oauth-json-web-token.html\n\n## Simple Rest API Example \n\n# For login\n\n    POST http://localhost:8000/api/v1/login \n\n**Request Parameter**\n    email - admin@admin.com\n    password - Admin@123\n\n**Response**\n    {\n        \"message\": \"Login Successfull.\",\n        \"token\": \"adHRwOi8vd3d3LmdyYXZhdGFyLmNvbS9hdmF0YXIvNjRlMWI4ZDM0ZjQyNWQxOWUxZWUyZWE3MjM2ZDMwMjguanBnP3M9ODAmZD1tbSZyPWciLCJjb25maXJtZWQiOjEsInJlZ2lzdGVyZWRfYXQiOiIyMDE4LTA4LTE2VDA1OjU4OjM4KzAwOjAwIiwibGFzdF91cGRhdGVkX2F0IjoiMjAxOC0wOC0xNlQwNTo1ODozOCswMDowMCJ9.Cd6GA8_yenGW7y74auMxk3gPN6yO8EMA3qMVmkhghc0\"\n    }\n\n## Issues\n\nIf you come across any issues please report them [here](https://github.com/gupta-kamlesh-r/laravel_boilerplate_for_api/issues).\n\n## Contributing\nFeel free to create any pull requests for the project. For propsing any new changes or features you want to add to the project, you can send us an email at webworldgk@gmail.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrguptaa%2Flaravel_boilerplate_for_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrguptaa%2Flaravel_boilerplate_for_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrguptaa%2Flaravel_boilerplate_for_api/lists"}