Skip to content

Commit da2fb0f

Browse files
authored
Merge pull request #5 from yipeecaiey/master
Upgrades for Laravel 6.0 compatibility
2 parents 56e7423 + fa3282e commit da2fb0f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Homestead.yaml
44
Homestead.json
55
.env
66
**/.DS_Store
7+
.idea/*

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": ["laravel", "database", "import", "artisan"],
66
"license": "MIT",
77
"require": {
8-
"illuminate/support": "^5"
8+
"illuminate/support": ">=5.7"
99
},
1010
"authors": [
1111
{

src/Import.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Nicklayb\LaravelDbImport;
44

55
use DB;
6+
use Illuminate\Support\Str;
67

78
/**
89
* Class for Import process
@@ -207,7 +208,7 @@ public function hasTableFilter($table)
207208
*/
208209
public function getFilterName($table)
209210
{
210-
return 'filter'.studly_case($table);
211+
return 'filter'. Str::studly($table);
211212
}
212213

213214
/**
@@ -354,7 +355,7 @@ public function hasLastTables()
354355
*/
355356
public function getManipulationName($table)
356357
{
357-
return 'manipulate'.studly_case($table);
358+
return 'manipulate'.Str::studly($table);
358359
}
359360

360361
/**

0 commit comments

Comments
 (0)