28 lines
429 B
PHP
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();
|
|
}
|
|
}
|