Mecha CMS

Guard::check()

Check token.

2.0.0Static

Guard::check(string $token, $id = 0);

Example:

if (false !== Guard::check(Post::get('token'))) { … }