Download the PHP package makkinga/laravel-trusted-devices without Composer
On this page you can find all versions of the php package makkinga/laravel-trusted-devices. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download makkinga/laravel-trusted-devices
More information about makkinga/laravel-trusted-devices
Files in makkinga/laravel-trusted-devices
Package laravel-trusted-devices
Short Description Add trusted devices to your user models
License MIT
Homepage https://github.com/makkinga/laravel-trusted-devices
Informations about the package laravel-trusted-devices
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
IpInfo
In order to make use of IpInfo.io's free 50k requests per month rate limit, add your API token to your .env:
Usage
Prepare your user model by adding the HasTrustedDevices
trait and also make sure it is using the Notifiable
trait:
Then add the trusted device middleware to your $routeMiddleware
in app/Http/Kernel.php
:
You can now use the "trusted" middleware on your routes and route groups like this:
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-trusted-devices with dependencies
illuminate/contracts Version ^10.8
jenssegers/agent Version ^2.6
livewire/livewire Version ^2.12
spatie/laravel-package-tools Version ^1.15