Skip to content

Commit b569692

Browse files
author
vc-sahil
committed
Handle array exception
1 parent 7f5a099 commit b569692

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to `laravel-word-refiner` will be documented in this file.
44

5+
## 0.1.5 - 2018-12-28
6+
- Handle array exception
7+
8+
## 0.1.4 - 2018-12-28
9+
- Change in name space
10+
511
## 0.1.3 - 2018-12-21
612

713
- Update Content

src/helpers.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
function refiner($request)
99
{
1010
try {
11+
if (is_array($request)) {
12+
return $request;
13+
}
1114
$requestData = $request->all();
1215
if ($requestData) {
1316
foreach ($requestData as $individualKey => $individualValue) {

0 commit comments

Comments
 (0)