File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
namespace Neurony \Duplicate \Options ;
4
4
5
5
use Exception ;
6
+ use Illuminate \Support \Arr ;
6
7
7
8
class DuplicateOptions
8
9
{
@@ -84,7 +85,7 @@ public static function instance(): self
84
85
*/
85
86
public function excludeColumns (...$ columns ): self
86
87
{
87
- $ this ->excludedColumns = array_flatten ($ columns );
88
+ $ this ->excludedColumns = Arr:: flatten ($ columns );
88
89
89
90
return $ this ;
90
91
}
@@ -97,7 +98,7 @@ public function excludeColumns(...$columns): self
97
98
*/
98
99
public function uniqueColumns (...$ columns ): self
99
100
{
100
- $ this ->uniqueColumns = array_flatten ($ columns );
101
+ $ this ->uniqueColumns = Arr:: flatten ($ columns );
101
102
102
103
return $ this ;
103
104
}
@@ -110,7 +111,7 @@ public function uniqueColumns(...$columns): self
110
111
*/
111
112
public function excludeRelations (...$ relations ): self
112
113
{
113
- $ this ->excludedRelations = array_flatten ($ relations );
114
+ $ this ->excludedRelations = Arr:: flatten ($ relations );
114
115
115
116
return $ this ;
116
117
}
Original file line number Diff line number Diff line change 4
4
5
5
use Closure ;
6
6
use Exception ;
7
+ use Illuminate \Support \Arr ;
7
8
use Illuminate \Support \Facades \DB ;
8
9
use Illuminate \Database \Eloquent \Model ;
9
10
use Neurony \Duplicate \Helpers \RelationHelper ;
@@ -285,7 +286,7 @@ protected function establishDuplicatablePivotAttributes(Model $model): array
285
286
{
286
287
$ pivot = $ model ->pivot ;
287
288
288
- return array_except ($ pivot ->getAttributes (), [
289
+ return Arr:: except ($ pivot ->getAttributes (), [
289
290
$ pivot ->getKeyName (),
290
291
$ pivot ->getForeignKey (),
291
292
$ pivot ->getOtherKey (),
You can’t perform that action at this time.
0 commit comments