Determining if the Old Input is Empty

Problem

You want to see if there's any old input (flashed input data the previous time the form was submitted).

Solution

Use the Form::oldInputIsEmpty() method.

if ( ! Form::oldInputIsEmpty())
{
    // check the old input value for specific fields
}
comments powered by Disqus