Download the PHP package salmanzafar/laravel-jwt-auto-installer without Composer
On this page you can find all versions of the php package salmanzafar/laravel-jwt-auto-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salmanzafar/laravel-jwt-auto-installer
More information about salmanzafar/laravel-jwt-auto-installer
Files in salmanzafar/laravel-jwt-auto-installer
Package laravel-jwt-auto-installer
Short Description A Laravel Library that let's you add tymon jwt auth library and all it's features with single command
License MIT
Informations about the package laravel-jwt-auto-installer
laravel-jwt-auto-installer
A Laravel Library that let's you add tymon jwt auth library and all it's features with single command
Why this was required?
The people who uses tymon/jwt-auth
knows that every time they installs package they need to manually create AuthController and then copy and paste the entire code their and same things for Model and Routes.
So every time when you have to do this it takes some time and being a developer we want more easy and simple way of doing thing. so the i came up with this idea of creating this and hopefully it will help you and will make your work easy.
what this package will do?
The package will create the following things for you
- installs for you
- Will publish inside
- (Model with all code including jwt functions)
- Will publish Routes (will create all the routes for auth e.g in
api.php
) - Will also publish the in your .env
Installation
Use the package manager composer to install laravel-jwt-auto-installer.
Enable the package (Optional)
This package implements Laravel auto-discovery feature. After you install it the package provider and facade are added automatically for laravel >= 5.5.
Configuration
Publish the service provider file
This step is required
Usage
That's it now it'll publish every thing you want e.g Controller Model(with functions jwt) and api routes for JWT
AuthController.php:
User.php
api.php
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.