refactoring.
This commit is contained in:
@@ -74,6 +74,16 @@ class Input {
|
||||
return ( ! is_null(static::old($key)) and trim((string) static::old($key)) !== '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Flash the input for the current request to the session.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function flash()
|
||||
{
|
||||
IoC::container()->core('session')->flash(Input::old_input, static::get());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get input data from the previous request.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user