質問編集履歴

2

$this->paymentを追記

2021/02/03 05:42

投稿

nanami0221
nanami0221

スコア18

test CHANGED
File without changes
test CHANGED
@@ -180,6 +180,34 @@
180
180
 
181
181
 
182
182
 
183
+
184
+
185
+ <?php
186
+
187
+
188
+
189
+ namespace App\Models;
190
+
191
+
192
+
193
+ use Illuminate\Database\Eloquent\Factories\HasFactory;
194
+
195
+ use Illuminate\Database\Eloquent\Model;
196
+
197
+ use Illuminate\Database\Eloquent\SoftDeletes;
198
+
199
+ use Illuminate\Support\Facades\Auth;
200
+
201
+ use Illuminate\Support\Facades\DB;
202
+
203
+ use App\Models\Withdrawal;
204
+
205
+
206
+
207
+ ~~~省略~~~
208
+
209
+
210
+
183
211
  /**
184
212
 
185
213
  * 取引詳細を取得
@@ -280,6 +308,72 @@
280
308
 
281
309
  /app/Http/Controllers/StudentController.php
282
310
 
311
+
312
+
313
+
314
+
315
+ <?php
316
+
317
+
318
+
319
+ namespace App\Http\Controllers;
320
+
321
+
322
+
323
+ use App\Http\Requests\Message\SendRequest as MessageSendRequest;
324
+
325
+ use App\Http\Requests\User\UpdateRequest as UserUpdateRequest;
326
+
327
+ use App\Http\Requests\User\PasswordUpdateRequest as UserPasswordUpdateRequest;
328
+
329
+ use App\Models\Payment;
330
+
331
+ use App\Models\Withdrawal;
332
+
333
+ use Illuminate\Http\Request;
334
+
335
+ use Illuminate\Support\Facades\Auth;
336
+
337
+ use Illuminate\Support\Facades\DB;
338
+
339
+ use Illuminate\Support\Facades\Hash;
340
+
341
+ use Jenssegers\Agent\Agent;
342
+
343
+
344
+
345
+ class StudentController extends Controller
346
+
347
+ {
348
+
349
+ private $payment;
350
+
351
+ private $withdrawal;
352
+
353
+
354
+
355
+ public function __construct(
356
+
357
+ Payment $payment,
358
+
359
+ withdrawal $withdrawal
360
+
361
+ )
362
+
363
+ {
364
+
365
+ $this->payment = $payment;
366
+
367
+ $this->withdrawal = $withdrawal;
368
+
369
+ }
370
+
371
+
372
+
373
+ ~~~省略~~~
374
+
375
+
376
+
283
377
  /**
284
378
 
285
379
  * 入出金履歴ページ

1

各ファイルのパスを追記しました。

2021/02/03 05:42

投稿

nanami0221
nanami0221

スコア18

test CHANGED
File without changes
test CHANGED
@@ -18,6 +18,24 @@
18
18
 
19
19
 
20
20
 
21
+ 【モデル】
22
+
23
+ /app/Models/Payment.php
24
+
25
+
26
+
27
+ 【コントローラー】
28
+
29
+ /app/Http/Controllers/StudentController.php
30
+
31
+
32
+
33
+ 【ビューファイル】
34
+
35
+ /resources/views/students/trade.blade.php
36
+
37
+
38
+
21
39
  ### 該当のソースコード
22
40
 
23
41
 
@@ -30,6 +48,10 @@
30
48
 
31
49
  ```Model
32
50
 
51
+ /app/Models/Payment.php
52
+
53
+
54
+
33
55
  /**
34
56
 
35
57
  * 決済金額を符号付きカンマ区切りにフォーマット
@@ -58,6 +80,10 @@
58
80
 
59
81
  ```blade
60
82
 
83
+ /resources/views/students/trade.blade.php
84
+
85
+
86
+
61
87
  <div class="l-list--deal--detail pc-only">
62
88
 
63
89
  <table>
@@ -150,6 +176,10 @@
150
176
 
151
177
  ```Model
152
178
 
179
+ /app/Models/Payment.php
180
+
181
+
182
+
153
183
  /**
154
184
 
155
185
  * 取引詳細を取得
@@ -248,6 +278,8 @@
248
278
 
249
279
  ```controller
250
280
 
281
+ /app/Http/Controllers/StudentController.php
282
+
251
283
  /**
252
284
 
253
285
  * 入出金履歴ページ