pos-gis/app/Services/AuthService2.php

28 lines
429 B
PHP
Raw Permalink Normal View History

2024-10-07 06:13:42 +00:00
<?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();
}
}