alireza/myauthtutor

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (dev-master) of this package.

a simple authentication

dev-master 2015-03-01 11:21 UTC

This package is not auto-updated.

Last update: 2021-11-22 17:39:31 UTC


README

Simple Authentication Package for Laravel 5.0. I've made this for sitepoint deep dive in laravel Packages Article.

Directions:

to use this package you would know about two main method and two properties.

  • Login: login() method can automatically get Post which include username and password input or You can do it manually like this : MyAuth::login(array('username'=>'Alireza@isawesome.me','password'=>'test'); If argument leave empty It'll search for POST input.

  • logout: just call it. :)

  • redirect_login or redirect_logout: are properties for changing directory after login/out action.