2017 © Pedro Peláez
 

library url-auth

Auth urls in laravel 5 by token with lifetime

image

iwedmak/url-auth

Auth urls in laravel 5 by token with lifetime

  • Thursday, June 21, 2018
  • by iWedmak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

laravel-5-url-auth

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, (*1)

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:, (*2)

iWedmak\UrlAuth\UrlAuthServiceProvider::class,

After that u will need to publish config, (*3)

php artisan vendor:publish

and publish migrations and migrate ``` bash php artisan urlauth:migration php artisan migrate, (*4)


Now you can user `urlauth($user_id, $url)` function in your blade template(or anywhere), like this: ``` bash {{urlauth($user['id'], route('some.route'))}}

You can listen for \iWedmak\UrlAuth\Events\UrlVisit event. in EventServiceProvider.php bash protected $listen = [ '\iWedmak\UrlAuth\Events\UrlVisit' => [ 'App\Listeners\SomeListener', ], ];, (*5)

The Versions

21/06 2018

dev-master

9999999-dev

Auth urls in laravel 5 by token with lifetime

  Sources   Download

MIT

The Requires

 

by iWedmak Om

laravel mail url auth illuminate lifetime

21/06 2018

v0.0.1

0.0.1.0

Auth urls in laravel 5 by token with lifetime

  Sources   Download

MIT

The Requires

 

by iWedmak Om

laravel mail url auth illuminate lifetime