質問編集履歴
5
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,8 +108,6 @@
|
|
108
108
|
|
109
109
|
####テーブル構成
|
110
110
|
|
111
|
-
```
|
112
|
-
|
113
111
|
cast_site テーブル
|
114
112
|
|
115
113
|
|id|cast_id|site_id|site_email|
|
@@ -138,7 +136,7 @@
|
|
138
136
|
|
139
137
|
||||
|
140
138
|
|
141
|
-
|
139
|
+
|
142
140
|
|
143
141
|
#####試したこと
|
144
142
|
|
4
cast php 追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,48 @@
|
|
64
64
|
|
65
65
|
```
|
66
66
|
|
67
|
+
cast php
|
68
|
+
|
69
|
+
```ここに言語を入力
|
70
|
+
|
71
|
+
<?php
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
namespace App\Models;
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
80
|
+
|
81
|
+
use Illuminate\Database\Eloquent\Model;
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
class Cast extends Model
|
86
|
+
|
87
|
+
{
|
88
|
+
|
89
|
+
use HasFactory;
|
90
|
+
|
91
|
+
protected $table = 'casts';
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
public function sites()
|
96
|
+
|
97
|
+
{
|
98
|
+
|
99
|
+
return $this->belongsToMany('App\Models\Site');
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
```
|
108
|
+
|
67
109
|
####テーブル構成
|
68
110
|
|
69
111
|
```
|
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -96,7 +96,7 @@
|
|
96
96
|
|
97
97
|
||||
|
98
98
|
|
99
|
-
|
99
|
+
```
|
100
100
|
|
101
101
|
#####試したこと
|
102
102
|
|
2
テーブル構成追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,38 @@
|
|
64
64
|
|
65
65
|
```
|
66
66
|
|
67
|
+
####テーブル構成
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
cast_site テーブル
|
72
|
+
|
73
|
+
|id|cast_id|site_id|site_email|
|
74
|
+
|
75
|
+
|:--|:--:|--:|
|
76
|
+
|
77
|
+
||||
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
casts テーブル
|
82
|
+
|
83
|
+
|id|cast_name|cast_password|
|
84
|
+
|
85
|
+
|:--|:--:|--:|
|
86
|
+
|
87
|
+
||||
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
sites テーブル
|
92
|
+
|
93
|
+
|id|site_name|site_url|
|
94
|
+
|
95
|
+
|:--|:--:|--:|
|
96
|
+
|
97
|
+
||||
|
98
|
+
|
67
99
|
|
68
100
|
|
69
101
|
#####試したこと
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,4 +66,20 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
+
#####試したこと
|
70
|
+
|
71
|
+
```ここに言語を入力
|
72
|
+
|
73
|
+
foreach ($cast as $data) {
|
74
|
+
|
75
|
+
$data->site_email = $request->site_email;
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
このようにもしてみましたがsite_emailなんてないよと言われてしまいます。
|
82
|
+
|
83
|
+
|
84
|
+
|
69
85
|
以上になります。もし解決策、改善点などあれば、ご教示いただけると幸いです。
|