Use constant for CSRF token.

This commit is contained in:
Taylor Otwell
2011-11-23 10:32:46 -06:00
parent a739afc32f
commit 8e5852b7eb

View File

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