Skip to content

Commit aedd207

Browse files
committed
Add CI badge, more examples
1 parent 432c6b8 commit aedd207

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

readme.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## CSV Seeder
22

3+
![](https://github.com/Flynsarmy/laravel-csv-seeder/workflows/CI/badge.svg)
4+
35

46
### Seed your database with CSV files
57

@@ -118,6 +120,15 @@ Skipping the CSV header row (Note: A mapping is required if this is done):
118120
$this->should_trim = true;
119121
}
120122

123+
Specifying the DB connection to use:
124+
125+
public function __construct()
126+
{
127+
$this->table = 'users';
128+
$this->connection = 'my_connection';
129+
$this->filename = base_path().'/database/seeds/csvs/your_csv.csv';
130+
}
131+
121132
### Migration Guide
122133

123134
#### 2.0

0 commit comments

Comments
 (0)