Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saifur-rahman-hasan/laravel-jwt-auth
Laravel JWT authentication
https://github.com/saifur-rahman-hasan/laravel-jwt-auth
Last synced: 4 days ago
JSON representation
Laravel JWT authentication
- Host: GitHub
- URL: https://github.com/saifur-rahman-hasan/laravel-jwt-auth
- Owner: saifur-rahman-hasan
- Created: 2022-02-04T02:37:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T16:13:33.000Z (almost 3 years ago)
- Last Synced: 2024-11-30T15:13:38.087Z (2 months ago)
- Language: PHP
- Size: 590 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About Laravel JWT Auth
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
## Installation Guide
- ``cp .env.example .env``
- Open ``.env`` to your editor and update your database connection configuration
- ``composer install`` or ``composer update``
- ``php artisan key:generate``
- ``php artisan jwt:secret``
- ``yarn install`` or ``npm install``
- `yarn dev` or ``npm run dev``
- `php artisan migrate`### Telescope Configuration
If you want to use Telescope You have to follow the following instructions- ``php artisan telescope:install``
- ``php artisan migrate --path=database/migrations/telescope``Add these configurations to your .env file. You can allow multiple users to allow using telescope but for this you have to mention their account email address.
```dotenv
TELESCOPE_ENABLED=true
TELESCOPE_AUTHORIZED_USERS="[email protected],[email protected]"
```We have added ``$schedule->command('telescope:prune --hours=48')->daily();`` to ``app/Console/Kernel.php`` file. This will remove telescope data from database every 48 hours later. You can change the time as your need. But make sure your schedule is working properly.
See the official [laravel docs](https://laravel.com/docs/8.x/scheduling#running-the-scheduler) to configure according to your need.