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: 2024-05-07 18:01:22 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