modified cookie class. set application key on first request if not set.

This commit is contained in:
Taylor Otwell
2012-01-31 15:58:00 -06:00
parent 4cf7f0c627
commit 2b12c0c140
6 changed files with 58 additions and 66 deletions

View File

@@ -1,10 +1,5 @@
<?php namespace Laravel; defined('DS') or die('No direct script access.');
if (trim(Config::get('application.key')) === '')
{
throw new \Exception('The Crypter class may not be used without an application key.');
}
class Crypter {
/**