https://github.com/irabbi360/laravel-api-starter
Laravel API JWT Starter is a "starter kit" you can use to build your first API in seconds. It is based on larave 10!
https://github.com/irabbi360/laravel-api-starter
laravel-api-auth laravel-api-authentication laravel-api-boilerplate laravel-api-starter laravel-boilerplate laravel-jwt laravel-jwt-auth laravel-jwt-authentication
Last synced: 4 days ago
JSON representation
Laravel API JWT Starter is a "starter kit" you can use to build your first API in seconds. It is based on larave 10!
- Host: GitHub
- URL: https://github.com/irabbi360/laravel-api-starter
- Owner: irabbi360
- Created: 2023-04-02T04:35:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T09:41:52.000Z (over 1 year ago)
- Last Synced: 2025-04-09T09:41:25.328Z (3 months ago)
- Topics: laravel-api-auth, laravel-api-authentication, laravel-api-boilerplate, laravel-api-starter, laravel-boilerplate, laravel-jwt, laravel-jwt-auth, laravel-jwt-authentication
- Language: PHP
- Homepage:
- Size: 276 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel JWT Rest API Starter
This repository contains a Laravel 10 with JWT authentication boilerplate
using the [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth) package.
[](https://opensource.org/licenses/MIT)
## Features
- JWT authentication (login, register, password reset, email verification)
- Profile updating
- Password changing
- Product CRUD## Installation
1. `cp .env.example .env`
2. `composer install`
3. `php artisan jwt:secret` (generate a secret key that will be used to sign your tokens)
4. `php artisan migrate:fresh --seed`## Authentication
In order to authenticate, you have to log in using valid credentials. User data and an access token will be returned.
You can use this access token to do subsequent requests to the API.The access token has a TTL of 1 hour until it expires. The access token should be refreshed within this time window to
avoid becoming unauthenticated.The access token can be refreshed for two weeks. After that, the user has to log in again.
## Contributing
Feel free to open a pull request if you want to contribute to this project. All contributions / suggestions are
welcome ✨