Download the PHP package ltsochev/eloquent-devices without Composer

On this page you can find all versions of the php package ltsochev/eloquent-devices. 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 eloquent-devices

Allow multiple remember me tokens per user

This package allows your users to be remembered by Laravel across multiple devices.

By default laravel stores the "remember" token in the users table as a singular column, which is an issue when more than one device stores a "remember token"

Installation

Laravel

This package can be used in Laravel 5.4 or higher. It's not tested on older versions as of yet.

You can install the package via composer:

Afterwards you'll need to register the service provider in your config/app.php file as follows:

make sure it's added after Illuminate\Auth\AuthServiceProvider and Illuminate\Session\SessionServiceProvider so that we are certain the Laravel Auth driver is already loaded.

Two more settings need to be added to config/auth.php file.

Once done, you'll have to run migrations for the package

And finally, you'll have to replace the auth driver in your auth config file. It's easily done by changing the config/auth.php file accordingly:

You can change the name of the abstraction by changing the value of driver_name in your config file.

And that's it! Your users will be remembered across multiple devices.

IMPORTANT! The package does not have automated garbage collect as of yet. You'll have to bake in something on your own for this one.


All versions of eloquent-devices with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/auth Version ^5.5
illuminate/container Version ^5.5
illuminate/contracts Version ^5.5
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 ltsochev/eloquent-devices contains the following files

Loading the files please wait ....