@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | ]; |
97 | 97 | } catch (\Exception $e) { |
98 | 98 | echo 'Exception thrown when fetching Eloquent API resource response for ['.implode(',', |
99 | - $route->methods)."] {$route->uri}.\n"; |
|
99 | + $route->methods)."] {$route->uri}.\n"; |
|
100 | 100 | if (Flags::$shouldBeVerbose) { |
101 | 101 | Utils::dumpException($e); |
102 | 102 | } else { |
@@ -117,10 +117,10 @@ discard block |
||
117 | 117 | array_filter($tags, |
118 | 118 | function ($tag) { |
119 | 119 | return ($tag instanceof Tag) && in_array(strtolower($tag->getName()), |
120 | - [ |
|
121 | - 'apiresource', |
|
122 | - 'apiresourcecollection' |
|
123 | - ]); |
|
120 | + [ |
|
121 | + 'apiresource', |
|
122 | + 'apiresourcecollection' |
|
123 | + ]); |
|
124 | 124 | }) |
125 | 125 | ); |
126 | 126 | |
@@ -184,10 +184,10 @@ discard block |
||
184 | 184 | $model = factory($type); |
185 | 185 | } |
186 | 186 | if ($useTransactions) { |
187 | - $model = $model->create(); |
|
187 | + $model = $model->create(); |
|
188 | 188 | \DB::rollBack(); |
189 | 189 | }else{ |
190 | - $model = $model->make(); |
|
190 | + $model = $model->make(); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | return $model; |