Recommend this page to a friend! |
![]() |
Info | Example | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 67 | All time: 10,355 This week: 206![]() |
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
|
<?php |
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
Or
php composer.phar require iwedmak/url-auth
Or add to composer.json
"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',
],
];
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | src |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Aux. | Auxiliary script | ||
![]() ![]() |
Example | Example script | ||
![]() |
Class | Class source | ||
![]() |
Class | Class source |
![]() |
/ | src | / | views | / | generators |
File | Role | Description |
---|---|---|
![]() ![]() |
Aux. | Auxiliary script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
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.