27 lines
387 B
PHP
27 lines
387 B
PHP
<?php
|
|
|
|
namespace App\Http\Services;
|
|
|
|
class AuthService
|
|
{
|
|
/**
|
|
* Check whether the user is authenticated
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function isAuthenticated()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function authenticate()
|
|
{
|
|
session()->put('auth', true);
|
|
}
|
|
|
|
public function logout()
|
|
{
|
|
session()->remove('auth');
|
|
}
|
|
}
|