There is no license information available for the latest version (0.0.4) of this package.

Maintainers

Package info

github.com/virtualorz/user

pkg:composer/virtualorz/user

Statistics

Installs: 26

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.4 2019-08-07 07:15 UTC

This package is auto-updated.

Last update: 2026-03-07 21:45:57 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