/** * Flash only fields where flash = true * * @param array $fields */ protected function flashInput(array $fields) { $flash = array_where($fields, function ($key, $config) { return $config['flash']; }); Input::flashOnly(array_keys($flash)); }
/** * Flash only fields where flash = true * * @param array $fields */ protected function flashInput(array $fields) { $flash = array_where($fields, function ($key, $config) { return $config['flash']; }); Input::flashOnly(array_keys($flash)); }