pos-gis/app/Services/AuthService2.php
2024-10-07 13:13:42 +07:00

28 lines
429 B
PHP

<?php
namespace App\Services;
use App\Interfaces\AuthApps;
class AuthService2 implements AuthApps
{
public function check()
{
return \Session::has("AppsToken2");
}
public function add($token)
{
\Session::forget("AppsToken2");
\Session::put("AppsToken2", $token);
}
public function clear()
{
\Session::forget("AppsToken2");
\Session::flush();
}
}