Commit a86d4477 authored by Taylor Otwell's avatar Taylor Otwell

refactoring redirect class.

parent ea6b58b2
......@@ -60,11 +60,13 @@ class Redirect {
*/
public function with($key, $value)
{
if (Config::get('session.driver') != '')
if (Config::get('session.driver') == '')
{
Session::flash($key, $value);
throw new \Exception("Attempting to flash data to the session, but no session driver has been specified.");
}
Session::flash($key, $value);
return $this;
}
......
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