Use constant for CSRF token.

This commit is contained in:
Taylor Otwell 2011-11-23 10:32:46 -06:00
parent a739afc32f
commit 8e5852b7eb
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<?php namespace Laravel; <?php namespace Laravel;
use Laravel\Session\Payload as Session;
class Form { class Form {
/** /**
@ -153,7 +155,7 @@ public static function token()
{ {
$token = IoC::core('session')->token(); $token = IoC::core('session')->token();
return static::input('hidden', 'csrf_token', $token); return static::input('hidden', Session::token, $token);
} }
/** /**