Browse Source

Clean up Form::token method.

Taylor Otwell 13 years ago
parent
commit
63ac87cc0f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      laravel/form.php

+ 1 - 3
laravel/form.php

@@ -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());
 	}
 
 	/**