Deprecated: Non-static method Session::get() should not be called statically in C:xampphtdocsooplrclassestoken.php on line 13 [migrated]

class Token {
public static function generate()
{
return Session::put(Config::get(‘session/token_name’), md5(uniqid()));
}

public static function check($token)
{
$tokenName = Config::get(‘session/token_name’);

if (Session::exists($tokenName) && $token === Session::get($tokenName))
{
return true;
}

return false;
}
}

Read more here:: Deprecated: Non-static method Session::get() should not be called statically in C:xampphtdocsooplrclassestoken.php on line 13 [migrated]

Leave a Reply

Your email address will not be published. Required fields are marked *