Commit 63ac87cc authored by Taylor Otwell's avatar Taylor Otwell

Clean up Form::token method.

parent 9b785fd7
......@@ -153,9 +153,7 @@ class Form {
*/
public static function token()
{
$token = IoC::core('session')->token();
return static::input('hidden', Session::csrf_token, $token);
return static::input('hidden', Session::csrf_token, IoC::core('session')->token());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment