Download the PHP package divineomega/laravel-last-activity without Composer
On this page you can find all versions of the php package divineomega/laravel-last-activity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download divineomega/laravel-last-activity
More information about divineomega/laravel-last-activity
Files in divineomega/laravel-last-activity
Package laravel-last-activity
Short Description Stores the last activity time of users within your Laravel application
License LGPL-3.0-only
Informations about the package laravel-last-activity
Laravel Last Activity
Stores the last activity time of users within your Laravel application
Installation
To install the Laravel Last Activity package, just run the following Composer command from the root of your project.
Setup
This package requires you to register middleware within
your app\Http\Kernel.php file. You will need add the
middleware to every middleware group you wish to monitor
activity for, as shown below.
You also need to add the config file and migration to your project. To do so, simply run the following Artisan command.
You can then run the provided migration to add a last_activity field
to your users table.
That's it. The last_activity field within your users will be
automatically updated whenever the user interacts with your application
via the web or API.
Alternative field name
If you do not wish to use last_activity as the field name, this
can be changed in the provided migration. You will also need
to alter the configuration file
The published configuration file for this package can be found at
config/last-activity.php.
All versions of laravel-last-activity with dependencies
laravel/framework Version ^5.6 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0