virtualorz / user
There is no license information available for the latest version (0.0.4) of this package.
0.0.4
2019-08-07 07:15 UTC
This package is auto-updated.
Last update: 2025-04-07 19:52:35 UTC
README
Use Laravel web to access sesssion put by virtualorz/permisdsion package
Install
composer require virtualorz/user
Config
edit config/app.php
'providers' => [
...
Virtualorz\User\UserServiceProvider::class
]
'aliases' => [
...
'Sitemap' => Virtualorz\User\Facades\User::class,
]
Method
get(key)
return string of session value in key : login_user
getProp($key)
return array of session $key
set($key,$value)
set the sesssion value under login_user
setProp($key,$value)
set the session value