回答編集履歴
1
再度書き直し
test
CHANGED
@@ -2,11 +2,7 @@
|
|
2
2
|
|
3
3
|
foreach($teamname as $teamname){
|
4
4
|
|
5
|
-
$team=new Team;
|
6
|
-
|
7
|
-
|
5
|
+
DB::table('teams')->insert(['teamname'=>$teamname]);
|
8
|
-
|
9
|
-
$team->save;
|
10
6
|
|
11
7
|
}
|
12
8
|
|