Somewhere in my plugin:

$input = Input::all();

$validator = Validator::make($input, [
    'name' => 'required',
]);

if ($validator->fails()) {
    return Redirect::back()->withInput($input)->withErrors($validator);
}

And somewhere in my view:

<input name="name" value="{{ form_value('name') }}">

 

Categories: October CMS