Download the PHP package jpnut/extended-laravel-auth without Composer

On this page you can find all versions of the php package jpnut/extended-laravel-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package extended-laravel-auth

Multiple "Remember Me" tokens per user

This package extends the default Laravel Authentication scaffolding to allow the creation of multiple "Remember Me" tokens per user.

With Laravel's default Auth, only one "Remember Me" token can be associated with a user at a time. This presents an issue for users of an application across multiple devices. For example, consider a user who has logged in using the "Remember Me" funcionality on two devices (e.g. on desktop and on mobile). If this user were to log out on one device (e.g. mobile), then the "Remember Me" token will be regenerated, and the user will not be logged in automatically on the other device (desktop in this example). We solve this problem my allowing multiple "Remember Me" tokens to be stored per user.

This process also has the added advantage of enabling an application to invalidate specific "Remember Me" tokens. For example, if a user were to accidentally click "Remember Me" whilst on a public device, the default process only allows a user to invalidate the token across all devices. With this package, we can selectively revoke tokens.

Installation

You can install the package with composer:

You can publish the migration with:

One should note that the removal of the "remember_token" field in the users table is not currently handled by this package. Any existing tokens will not transferred automatically. After the migration has been published you can create the token table by running the migrations:

You can publish the config file with:

Usage

Since the default auth implementation of "Remember Me" tokens is baked into the "Illuminate\Contracts\Auth\Authenticatable" contract, this package overwrites this, and provides an alternative to the "Illuminate\Foundation\Auth\User" provided by Laravel.

You must ensure that your User model(s) implement "JPNut\ExtendedAuth\Contracts\Authenticatable". The easiest way to accomplish this is to extend "JPNut\ExtendedAuth\User":

To enable the guard, you will need to modify config/auth.php as follows:

You should also make sure that the guard is defined on the routes where you wish to make use of this guard. For most cases this involves changing the default guard to extended-web. Note that extended-session and extended-eloquent can be modified in the config/extended-auth file.

Certain other areas of the default Laravel framework also rely upon features which have been changed in this package:

Extending

You need to make sure:

Testing

License

MIT


All versions of extended-laravel-auth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/auth Version ~5.5.0|~5.6.0
illuminate/contracts Version ~5.5.0|~5.6.0
illuminate/database Version ~5.5.0|~5.6.0
illuminate/support Version ~5.5.0|~5.6.0
laravel/framework Version ~5.5.0|~5.6.0
symfony/http-foundation Version ~4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jpnut/extended-laravel-auth contains the following files

Loading the files please wait ....