Download .zip |
Info | Example | View files (11) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-07-17 (1 month ago) | Not yet rated by the users | Total: 52 This week: 20 | All time: 9,261 This week: 50 |
Version | License | PHP version | Categories | |||
laravel-5-url-auth 1.0 | Custom (specified... | 5 | PHP 5, User Management, Libraries |
Description | Author | ||||||||||||||
This package is a Laravel service provider to track visitors. Innovation Award
|
|
Mostly for use in emails, so user can click url and get redirected with authentication. Url in email have lifetime, in hours. Monitors url visits reads, have event UrlVisit. * install
composer require iwedmak/url-auth
`
bash
php composer.phar require iwedmak/url-auth
`
`
bash
"iwedmak/url-auth": "*"
`
Register provider, add this to config/app.php in providers array:
iWedmak\UrlAuth\UrlAuthServiceProvider::class,
After that u will need to publish config
php artisan vendor:publish
and publish migrations and migrate
php artisan urlauth:migration
php artisan migrate
Now you can user urlauth($user_id, $url)
function in your blade template(or anywhere), like this:
{{urlauth($user['id'], route('some.route'))}}
You can listen for \iWedmak\UrlAuth\Events\UrlVisit
event.
in EventServiceProvider.php
protected $listen = [
'\iWedmak\UrlAuth\Events\UrlVisit' => [
'App\Listeners\SomeListener',
],
];
Files |
File | Role | Description | ||
---|---|---|---|---|
src (4 files, 4 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
commands (1 file) | ||||
config (1 file) | ||||
Events (1 file) | ||||
views (1 directory) | ||||
helper.php | Aux. | Auxiliary script | ||
routes.php | Example | Example script | ||
UrlAuth.php | Class | Class source | ||
UrlAuthServiceProvider.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.