{"id":23960494,"url":"https://github.com/vikrantparmar/laravel-jwt-api-crudx","last_synced_at":"2026-05-04T18:38:12.105Z","repository":{"id":270577939,"uuid":"910714106","full_name":"VikrantParmar/laravel-jwt-api-crudX","owner":"VikrantParmar","description":"Laravel 10 : APIs Using JWT token Authentication | Category CRUD APIs | Blog CRUD APIs | Multi Language API","archived":false,"fork":false,"pushed_at":"2025-01-12T06:44:57.000Z","size":8604,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T12:19:28.667Z","etag":null,"topics":["blog-api","category-api","jwt-authentication","laravel","laravel-framework","multi-language","mysql-database","php","rest-api","role-permissions"],"latest_commit_sha":null,"homepage":"https://laravel-jwt-api-crud-x.vercel.app","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/VikrantParmar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-01T06:56:47.000Z","updated_at":"2025-02-10T15:40:49.000Z","dependencies_parsed_at":"2025-01-01T14:39:44.650Z","dependency_job_id":null,"html_url":"https://github.com/VikrantParmar/laravel-jwt-api-crudX","commit_stats":null,"previous_names":["vikrantparmar/laravel-jwt-api-crudx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikrantParmar%2Flaravel-jwt-api-crudX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikrantParmar%2Flaravel-jwt-api-crudX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikrantParmar%2Flaravel-jwt-api-crudX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikrantParmar%2Flaravel-jwt-api-crudX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VikrantParmar","download_url":"https://codeload.github.com/VikrantParmar/laravel-jwt-api-crudX/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240475230,"owners_count":19807292,"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":["blog-api","category-api","jwt-authentication","laravel","laravel-framework","multi-language","mysql-database","php","rest-api","role-permissions"],"created_at":"2025-01-06T19:28:53.537Z","updated_at":"2026-05-04T18:38:12.059Z","avatar_url":"https://github.com/VikrantParmar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Laravel](https://img.shields.io/badge/Laravel-%23FF2D20.svg?style=flat\u0026logo=laravel\u0026logoColor=white) Laravel 10 JWT Authentication REST API 🚀\n\nThis project is a backend application built with the PHP Laravel framework, MySQL, and JWT (JSON Web Tokens) authentication. It provides a robust REST API for managing user authentication, category, and blog features, with multi-language support for English (EN), French (FR), and German (DE). \n\n---\n\nThis is a login system with two types of users:\n- **Admin**\n- **User**\n\n\n## ⭐ Features\n\n###  🔒 Authentication APIs\n- **Login:** Secure login using JWT tokens.\n- **Register:** New user registration. Sends email notifications to the user and the system admin.\n- **Forgot Password:** Sends an email to the registered user with a password reset link.\n- **Reset Password:** Allows users to securely reset their password.\n- **Profile:** Fetch, update, and manage user profile data.\n\n### 📧 Email Notifications\n- **User Registration:** Email notifications are sent to both the newly registered user and the system admin.\n- **Forgot Password Request:** Email with a reset link is sent to the registered user.\n\n### 📂 Category APIs [Only Access By Admin Role]\n- **List Categories:** Retrieve a list of all categories.\n- **Add Category:** Add a new category to the system.\n- **Update Category:** Update an existing category.\n- **Category Details:** Fetch details of a specific category.\n- **Delete Category:** Delete a category.\n\n### 📝 Blog APIs\n- **List Blogs:** Retrieve a list of all blogs.\n- **Add Blog:** Add a new blog post to the system.\n- **Update Blog:** Update an existing blog post.\n- **Blog Details:** Fetch details of a specific blog post.\n- **Delete Blog:** Delete a blog post.\n\n### 🌐 Multi-Language Support\n- Supports three languages: English (EN), French (FR), and German (DE).\n- Language selection can be done via API headers.\n\n---\n\n## ⚙ Installation and Setup Instructions\n\nFollow these steps to set up the Laravel application:\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/VikrantParmar/laravel-jwt-api-crudX.git\n   cd laravel-jwt-api-crudX\n\n2. **Install Dependencies**\n   ```bash\n   composer install\n\n4. **Create Environment File**\n   ```bash\n   cp .env.example .env\n   - Update the .env file with your database credentials and email configuration.\n\n5. Generate Application Key\n   ```bash\n   php artisan key:generate\n\n6. Run Database Migrations\n   ```bash\n   php artisan migrate\n\n7. Run Seeders\n   ```bash\n   php artisan db:seed\n\n8. Run the Application\n   ```bash\n   php artisan serve\n\n9. Access the Application Open your browser and navigate to\n   ```bash\n   http://127.0.0.1:8000\n\n## Default Credentials for Testing\n\n| **Role**   | **Username**                      | **Password**   |\n|------------|-----------------------------------|----------------|\n| **Admin**  | vikrant-admin@example.com         | 123456789      |\n| **User**   | vikrant-user@example.com          | 123456789      |\n| **User-Inactive**   | vikrant-inactive@example.com          | 123456789      |\n\n\n\n## 📋 API Documentation [\u003cimg src=\"https://voyager.postman.com/logo/postman-logo-icon-orange.svg\" width=\"20\" height=\"20\" /\u003e](https://documenter.getpostman.com/view/39353609/2sAYJ7geHA)\n#### 🔗 Visit the Postman Docs for more details [Postman Docs](https://documenter.getpostman.com/view/39353609/2sAYJ7geHA)\n\n### Endpoints Overview\n\n#### 🔒 Authentication\n- `POST /api/v1/login` - User login.\n- `POST /api/v1/register` - User registration.\n- `POST /api/v1/forgot-password` - Request password reset.\n- `POST /api/v1/reset-password` - Reset password.\n- `GET /api/v1/profile` - Get user profile.\n\n#### Category Management\n- `GET /api/v1/categories` - List categories.\n- `POST /api/v1/categories` - Add a new category.\n- `PUT /api/v1/categories/{id}` - Update a category.\n- `GET /api/v1/categories/{id}` - Get category details.\n- `DELETE /api/v1/categories/{id}` - Delete a category.\n\n#### Blog Management\n- `GET /api/v1/blogs` - List blogs.\n- `POST /api/v1/blogs` - Add a new blog post.\n- `PUT /api/v1/blogs/{id}` - Update a blog post.\n- `GET /api/v1/blogs/{id}` - Get blog details.\n- `DELETE /api/v1/blogs/{id}` - Delete a blog post.\n\n---\n\n### 🌐 Multi-Language Support\nSet the `Accept-Language` header in your API requests to one of the following values:\n\n- `en` for English\n- `fr` for French\n- `de` for German\n\n\u003e [!NOTE]\n\u003e Include additional setup instructions if you use third-party services (e.g., mail providers or APIs).  \n\u003e Multi-Language for only api reponse msg like success and error.\n\n\n### 🌎 Contact\nFor questions, feedback, or collaboration inquiries, please contact:\n\nName: Vikrant Parmar  \nEmail: vikrant.parmar91@gmail.com\n\n\n\n\nThank you for using this application! 😊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikrantparmar%2Flaravel-jwt-api-crudx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikrantparmar%2Flaravel-jwt-api-crudx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikrantparmar%2Flaravel-jwt-api-crudx/lists"}